Commit 87b6848d authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[Pages] more thermite -> reactix migrations

parent 0e5d4847
...@@ -5,8 +5,8 @@ import Data.Lens (over) ...@@ -5,8 +5,8 @@ import Data.Lens (over)
import Data.Maybe (Maybe(Nothing, Just)) import Data.Maybe (Maybe(Nothing, Just))
import Effect (Effect) import Effect (Effect)
import React (ReactElement) import React (ReactElement)
import React.DOM (a, button, div, footer, hr', img, li, p, span, text, ul) import React.DOM (button, div, text)
import React.DOM.Props (_data, _id, aria, className, href, onClick, role, src, style, tabIndex, target, title, height, width) import React.DOM.Props (_id, className, onClick, role, style)
import Reactix as R import Reactix as R
import Reactix.DOM.HTML as H import Reactix.DOM.HTML as H
import Thermite (Render, Spec, _render, defaultPerformAction, defaultRender, focus, simpleSpec, withState, noState, cmapProps) import Thermite (Render, Spec, _render, defaultPerformAction, defaultRender, focus, simpleSpec, withState, noState, cmapProps)
...@@ -85,7 +85,7 @@ layout0 layout = ...@@ -85,7 +85,7 @@ layout0 layout =
fold fold
[ searchBar [ searchBar
, outerLayout , outerLayout
, layoutFooter , noState layoutFooter
] ]
where where
outerLayout1 = simpleSpec defaultPerformAction defaultRender outerLayout1 = simpleSpec defaultPerformAction defaultRender
...@@ -132,7 +132,7 @@ layout1 layout = ...@@ -132,7 +132,7 @@ layout1 layout =
[ searchBar [ searchBar
, layout , layout
-- , outerLayout -- , outerLayout
, layoutFooter , noState layoutFooter
] ]
where where
outerLayout1 = simpleSpec defaultPerformAction defaultRender outerLayout1 = simpleSpec defaultPerformAction defaultRender
...@@ -342,28 +342,29 @@ divDropdownRight d s = ...@@ -342,28 +342,29 @@ divDropdownRight d s =
[ logLinks d s ] [ logLinks d s ]
] ]
layoutFooter :: Spec AppState {} Action layoutFooter :: Spec {} {} Void
layoutFooter = simpleSpec performAction render layoutFooter = R2.elSpec $ R.hooksComponent "LayoutFooter" cpt
where where
render :: Render AppState {} Action cpt {} _children = do
render dispatch _ state _ = [div [ className "container" ] [ hr', footerLegalInfo']] pure $ H.div { className: "container" } [ H.hr {}, footerLegalInfo']
where
footerLegalInfo' = footer [] [ p [] [ text "Gargantext " footerLegalInfo' = H.footer {}
, span [className "glyphicon glyphicon-registration-mark" ] [] [ H.p {} [ H.text "Gargantext "
, text ", version 4.0" , H.span {className: "glyphicon glyphicon-registration-mark"} []
, a [ href "http://www.cnrs.fr" , H.text ", version 4.0"
, target "blank" , H.a { href: "http://www.cnrs.fr"
, title "Project hosted by CNRS." , target: "blank"
] , title: "Project hosted by CNRS."
[ text ", Copyrights " }
, span [ className "glyphicon glyphicon-copyright-mark" ] [] [ H.text ", Copyrights "
, text " CNRS 2017-Present" , H.span { className: "glyphicon glyphicon-copyright-mark" } []
] , H.text " CNRS 2017-Present"
, a [ href "http://gitlab.iscpif.fr/humanities/gargantext/blob/stable/LICENSE" ]
, target "blank" , H.a { href: "http://gitlab.iscpif.fr/humanities/gargantext/blob/stable/LICENSE"
, title "Legal instructions of the project." , target: "blank"
] , title: "Legal instructions of the project."
[ text ", Licences aGPLV3 and CECILL variant Affero compliant" ] }
, text "." [ H.text ", Licences aGPLV3 and CECILL variant Affero compliant" ]
] , H.text "."
] ]
]
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