Commit da48c2fc authored by James Laver's avatar James Laver

Move G.Folder to G.C.Folder and port to Reactix

parent 55b8b231
module Gargantext.Components.Folder where
import Reactix as R
import Reactix.DOM.HTML as H
-- TODO : get REST informations
folder :: {} -> R.Element
folder props = R.createElement folderCpt props []
folderCpt :: R.Component ()
folderCpt = R.staticComponent "G.C.Folder.folder" cpt
where
cpt _ _ =
R.fragment
[ H.h1 {} [ H.text "Folder" ]
, H.text "Some description of the folder here" ]
module Gargantext.Folder where
import Prelude
import Reactix as R
import Reactix.DOM.HTML as H
import Thermite (Spec)
import Gargantext.Utils.Reactix as R2
-- TODO : get REST informations
layoutFolder :: Spec {} {} Void
layoutFolder = R2.elSpec $ R.hooksComponent "LayoutFolder" cpt
where
cpt {} _ = do
pure $ H.span {} [
H.h1 {} [ H.text "Folder" ]
, H.text "Some description of the folder here"
]
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