Commit 57762d28 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[search] fix searx url

Also, some fixes to react component errors.
parent 3e5c165d
......@@ -72,7 +72,7 @@ divIframeCpt = R2.hooksComponent thisModule "divIframe" cpt
frameUrl :: FrameSource -> String
frameUrl Istex = "https://istex.frame.gargantext.org"
frameUrl Searx = "http://searx.frame.gargantext.org" -- 192.168.1.4:8080"
frameUrl Searx = "https://searx.frame.gargantext.org" -- 192.168.1.4:8080"
iframeWith :: Record IFrameProps -> R.Element
......
......@@ -342,12 +342,11 @@ searchInputComponent = R2.hooksComponent thisModule "searchInput" cpt
cpt {search: (search /\ setSearch)} _ = do
pure $
H.div { className : "" }
[ H.input { defaultValue: search.term
, value: search.term
, className: "form-control"
, type: "text"
[ H.input { className: "form-control"
, defaultValue: search.term
, on: { change : onChange setSearch }
, placeholder: "Your Query here"
, type: "text"
}
]
onChange setSearch e = do
......
......@@ -142,7 +142,7 @@ nodePopupCpt = R2.hooksComponent thisModule "nodePopupView" cpt
-> R.Element
panelBody nodePopupState {dispatch: d, nodeType} =
H.div {className: "panel-body flex-space-between"}
$ [ H.p { class: "spacer" } []
$ [ H.p { className: "spacer" } []
, H.div { className: "flex-center" }
[ buttonClick { action: doc
, state: nodePopupState
......
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