aboutsummaryrefslogtreecommitdiff
path: root/client/src/Component/Link.hs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/Component/Link.hs')
-rw-r--r--client/src/Component/Link.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/Component/Link.hs b/client/src/Component/Link.hs
index 7e8558b..1fd620e 100644
--- a/client/src/Component/Link.hs
+++ b/client/src/Component/Link.hs
@@ -1,5 +1,5 @@
module Component.Link
- ( link
+ ( view
) where
import Data.Map (Map)
@@ -9,8 +9,8 @@ import qualified Data.Text as T
import Reflex.Dom (Dynamic, MonadWidget)
import qualified Reflex.Dom as R
-link :: forall t m a. MonadWidget t m => Text -> Dynamic t (Map Text Text) -> Text -> m ()
-link href inputAttrs content =
+view :: forall t m a. MonadWidget t m => Text -> Dynamic t (Map Text Text) -> Text -> m ()
+view href inputAttrs content =
R.elDynAttr "a" attrs (R.text content)
where