diff --git a/src/Gargantext/Components/GraphExplorer/Sigmajs.js b/src/Gargantext/Components/GraphExplorer/Sigmajs.js index 66cb4d98129778ace5c461fd9fa2d2c62424e563..9205d927181d99990832904f4e8f6434cf897fd5 100644 --- a/src/Gargantext/Components/GraphExplorer/Sigmajs.js +++ b/src/Gargantext/Components/GraphExplorer/Sigmajs.js @@ -41,7 +41,7 @@ exports.forceLinkClass = FL.default; } const myGoto = function(sigma){ - alert("My goto ffi"); + console.log("My goto ffi"); }; exports.myGoto = myGoto; diff --git a/src/Gargantext/Components/GraphExplorer/Sigmajs.purs b/src/Gargantext/Components/GraphExplorer/Sigmajs.purs index 309a966796520ac24873cd17963df61f56b2bd89..f824f8cc963b0e5e4718f747ef35f76a361aa824 100644 --- a/src/Gargantext/Components/GraphExplorer/Sigmajs.purs +++ b/src/Gargantext/Components/GraphExplorer/Sigmajs.purs @@ -3,7 +3,6 @@ module Gargantext.Components.GraphExplorer.Sigmajs where import Prelude import Data.Nullable (Nullable) -import Data.Unit (Unit) import Effect (Effect) import React (Children, ReactClass, ReactElement, ReactRef, createElement, unsafeCreateElement) import React.DOM.Props (Props) @@ -252,7 +251,7 @@ type SigmaProps = , settings :: SigmaSettings , style :: SigmaStyle , graph :: SigmaGraphData - , ref :: (Nullable ReactRef -> Effect Unit) -> Props + , ref :: Nullable ReactRef -> Effect Unit , onClickNode :: SigmaNodeEvent -> Unit , onOverNode :: SigmaNodeEvent -> Unit , onOutNode :: SigmaNodeEvent -> Effect Unit @@ -286,9 +285,6 @@ edgeShape = , tapered : EdgeShape "tapered" } - - - newtype NodeShape = NodeShape String nodeShape :: { def :: NodeShape