Commit 977f1735 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[DOC] Tooltip, icon added

parent 12404dee
...@@ -2,7 +2,6 @@ module Gargantext.Components.Forest where ...@@ -2,7 +2,6 @@ module Gargantext.Components.Forest where
import Gargantext.Prelude import Gargantext.Prelude
import Data.Array as A
import Data.Maybe (Maybe(..)) import Data.Maybe (Maybe(..))
import Data.Set as Set import Data.Set as Set
import Data.Tuple (fst) import Data.Tuple (fst)
......
...@@ -9,7 +9,6 @@ import Effect.Class (liftEffect) ...@@ -9,7 +9,6 @@ import Effect.Class (liftEffect)
import React.SyntheticEvent as E import React.SyntheticEvent as E
import Reactix as R import Reactix as R
import Reactix.DOM.HTML as H import Reactix.DOM.HTML as H
import Web.File.FileReader.Aff (readAsText)
import Gargantext.Components.Forest.Tree.Node.Settings (SettingsBox(..), settingsBox) import Gargantext.Components.Forest.Tree.Node.Settings (SettingsBox(..), settingsBox)
import Gargantext.Components.Forest.Tree.Node.Action (Action(..)) import Gargantext.Components.Forest.Tree.Node.Action (Action(..))
...@@ -24,7 +23,7 @@ import Gargantext.Components.Forest.Tree.Node.Tools (nodeLink) ...@@ -24,7 +23,7 @@ import Gargantext.Components.Forest.Tree.Node.Tools (nodeLink)
import Gargantext.Components.GraphExplorer.API as GraphAPI import Gargantext.Components.GraphExplorer.API as GraphAPI
import Gargantext.Components.Lang (Lang(EN)) import Gargantext.Components.Lang (Lang(EN))
import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild) import Gargantext.Components.Nodes.Corpus (loadCorpusWithChild)
import Gargantext.Ends (Frontends, url) import Gargantext.Ends (Frontends)
import Gargantext.Hooks.Loader (useLoader) import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Prelude (Unit, bind, const, discard, map, pure, show, unit, void, ($), (<>), (==), identity) import Gargantext.Prelude (Unit, bind, const, discard, map, pure, show, unit, void, ($), (<>), (==), identity)
import Gargantext.Routes as Routes import Gargantext.Routes as Routes
......
...@@ -17,7 +17,7 @@ import React.SyntheticEvent as E ...@@ -17,7 +17,7 @@ import React.SyntheticEvent as E
import Reactix as R import Reactix as R
import Reactix.DOM.HTML as H import Reactix.DOM.HTML as H
import URI.Extra.QueryPairs as QP import URI.Extra.QueryPairs as QP
import Web.File.Blob (Blob) -- import Web.File.Blob (Blob)
import Web.File.FileReader.Aff (readAsDataURL, readAsText) import Web.File.FileReader.Aff (readAsDataURL, readAsText)
import Gargantext.Prelude import Gargantext.Prelude
...@@ -31,7 +31,6 @@ import Gargantext.Sessions (Session, postWwwUrlencoded) ...@@ -31,7 +31,6 @@ import Gargantext.Sessions (Session, postWwwUrlencoded)
import Gargantext.Types (NodeType(..), ID) import Gargantext.Types (NodeType(..), ID)
import Gargantext.Types as GT import Gargantext.Types as GT
import Gargantext.Utils.Reactix as R2 import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.String as GUS
-- UploadFile Action -- UploadFile Action
......
...@@ -2,7 +2,6 @@ module Gargantext.Components.Forest.Tree.Node.Box where ...@@ -2,7 +2,6 @@ module Gargantext.Components.Forest.Tree.Node.Box where
import Data.Array as A import Data.Array as A
import Data.Maybe (Maybe(..)) import Data.Maybe (Maybe(..))
import Data.String as S
import Data.Tuple (fst) import Data.Tuple (fst)
import Data.Tuple.Nested ((/\)) import Data.Tuple.Nested ((/\))
import DOM.Simple.Console (log2) import DOM.Simple.Console (log2)
......
...@@ -285,19 +285,17 @@ nodeLinkCpt = R.hooksComponent "G.C.F.T.N.T.nodeLink" cpt ...@@ -285,19 +285,17 @@ nodeLinkCpt = R.hooksComponent "G.C.F.T.N.T.nodeLink" cpt
popoverRef <- R.useRef null popoverRef <- R.useRef null
pure $ pure $
H.div {} [ H.div {} [ H.a { data: { for: tooltipId, tip: true }
H.a { data: { for: tooltipId, tip: true }
, href: url frontends $ GT.NodePath (sessionId session) nodeType (Just id) } , href: url frontends $ GT.NodePath (sessionId session) nodeType (Just id) }
[ nodeText { isSelected [ nodeText { isSelected
, name , name
} ] }
, ReactTooltip.reactTooltip { id: tooltipId } [
R2.row [
H.h4 {} [ H.text $ prettyNodeType nodeType ]
] ]
, R2.row [ , ReactTooltip.reactTooltip { id: tooltipId }
H.span {} [ H.text $ name ] [ R2.row [ H.h4 {className: GT.fldr nodeType true}
[ H.text $ prettyNodeType nodeType ]
] ]
, R2.row [ H.span {} [ H.text $ name ]]
] ]
] ]
......
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