Commit 19595b16 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[toestand] fix tooltip for tree

parent 1158c26d
...@@ -263,9 +263,9 @@ nodeLinkCpt = here.component "nodeLink" cpt ...@@ -263,9 +263,9 @@ nodeLinkCpt = here.component "nodeLink" cpt
pure $ pure $
H.div { className: "node-link" H.div { className: "node-link"
, on: { click } } , on: { click } }
[ H.a { href, data: { for: tooltipId, tip: true } } [ H.a { href, data: { for: tooltipId id, tip: true } }
[ nodeText { handed, isSelected, name } [] [ nodeText { handed, isSelected, name } []
, ReactTooltip.reactTooltip { id: tooltipId id } , ReactTooltip.reactTooltip { effect: "float", id: tooltipId id, type: "dark" }
[ R2.row [ R2.row
[ H.h4 {className: GT.fldr nodeType true} [ H.h4 {className: GT.fldr nodeType true}
[ H.text $ GT.prettyNodeType nodeType ] [ H.text $ GT.prettyNodeType nodeType ]
...@@ -280,7 +280,6 @@ nodeLinkCpt = here.component "nodeLink" cpt ...@@ -280,7 +280,6 @@ nodeLinkCpt = here.component "nodeLink" cpt
-- click on closed -> open -- click on closed -> open
-- click on open -> ? -- click on open -> ?
click _ = when (not isSelected) (T.write_ true folderOpen) click _ = when (not isSelected) (T.write_ true folderOpen)
tooltipId id = "node-link-" <> show id
href = url frontends $ GT.NodePath (sessionId session) nodeType (Just id) href = url frontends $ GT.NodePath (sessionId session) nodeType (Just id)
-- END node link -- END node link
......
...@@ -11,7 +11,9 @@ import Gargantext.Prelude ...@@ -11,7 +11,9 @@ import Gargantext.Prelude
type Props = type Props =
( (
id :: String effect :: String
, id :: String
, type :: String
) )
foreign import reactTooltipCpt :: R.Component Props foreign import reactTooltipCpt :: R.Component Props
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment