1
0
Fork 0

use a context to allow all menus to be in same parent on mobile

This commit is contained in:
Enoch Riese 2023-06-29 14:35:46 +00:00
parent 951eb57718
commit 012b0eb8d6
10 changed files with 199 additions and 50 deletions

View file

@ -25,4 +25,8 @@ export const HeaderWrapper = ({ show, children }) => {
)
}
export const shownHeaderSelector = 'group-[.header-shown]/layout:'
const shownHeaderClasses = {
'bottom-16': 'group-[.header-shown]/layout:bottom-16',
}
export const shownHeaderSelector = (cls) => shownHeaderClasses[cls]