Commit 98cdd8d9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[CLEAN] topbar

parent 6a142a16
...@@ -154,6 +154,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed ...@@ -154,6 +154,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
-- [To Topbar portal] -- [To Topbar portal]
-- @NOTE #446: UI flicker artfact when user toggle the CTA -- @NOTE #446: UI flicker artfact when user toggle the CTA
-- This is due to a re-render + portal input focus -- lost -- This is due to a re-render + portal input focus -- lost
{-
R2.createPortal' mTopBarHost R2.createPortal' mTopBarHost
[ [
R2.fragmentWithKey topBarPortalKey R2.fragmentWithKey topBarPortalKey
...@@ -171,6 +172,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed ...@@ -171,6 +172,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
] ]
] ]
, ,
-}
H.div H.div
{ className: "table-header-rename__title" } { className: "table-header-rename__title" }
[ [
...@@ -211,7 +213,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed ...@@ -211,7 +213,7 @@ tableHeaderWithRenameBoxedLayoutCpt = here.component "tableHeaderWithRenameBoxed
cacheText NT.CacheOn = "Cache On" cacheText NT.CacheOn = "Cache On"
cacheText NT.CacheOff = "Cache Off" cacheText NT.CacheOff = "Cache Off"
cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState -- cacheClick cacheState _ = T.modify_ cacheStateToggle cacheState
cacheStateToggle NT.CacheOn = NT.CacheOff cacheStateToggle NT.CacheOn = NT.CacheOff
cacheStateToggle NT.CacheOff = NT.CacheOn cacheStateToggle NT.CacheOff = NT.CacheOn
......
...@@ -93,17 +93,15 @@ componentCpt = here.component "main" cpt where ...@@ -93,17 +93,15 @@ componentCpt = here.component "main" cpt where
, themes: allThemes , themes: allThemes
} [] } []
] ]
,
H.li {- ,
{ className: "nav-item main-topbar__lang-switcher" } H.li { className: "nav-item main-topbar__lang-switcher" }
[ [ langSwitcher
langSwitcher
{ lang { lang
, langs: allFeLangs , langs: allFeLangs
} [] } []
] ]-}
, , B.button
B.button
{ variant: showTree' ? { variant: showTree' ?
ButtonVariant Light $ ButtonVariant Light $
OutlinedButtonVariant Light OutlinedButtonVariant Light
...@@ -115,9 +113,7 @@ componentCpt = here.component "main" cpt where ...@@ -115,9 +113,7 @@ componentCpt = here.component "main" cpt where
then H.text "Hide Tree" then H.text "Hide Tree"
else H.text "Show Tree" else H.text "Show Tree"
] ]
, , H.div { id: "portal-topbar" } []
H.div
{ id: "portal-topbar" } []
] ]
-- SB.searchBar {session, databases: allDatabases} -- SB.searchBar {session, databases: allDatabases}
......
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