1
0
Fork 0

wip(dev): Work on examples sharing code from workbench

This commit is contained in:
Joost De Cock 2022-09-22 10:09:46 +02:00 committed by joostdecock
parent 75de42a03d
commit 34250abeed
22 changed files with 18 additions and 815 deletions

View file

@ -19,6 +19,7 @@ function useApp(full = true) {
const [navigation, setNavigation] = useState(prebuildNavigation[language])
const [slug, setSlug] = useState('/')
const [loading, setLoading] = useState(false)
const [popup, setPopup] = useState(false)
// State methods
const togglePrimaryMenu = () => setPrimaryMenu(!primaryMenu)
@ -43,6 +44,7 @@ function useApp(full = true) {
// State
loading,
navigation,
popup,
primaryMenu,
slug,
theme,
@ -50,6 +52,7 @@ function useApp(full = true) {
// State setters
setLoading,
setNavigation,
setPopup,
setPrimaryMenu,
setSlug,
setTheme,