use a context to allow all menus to be in same parent on mobile
This commit is contained in:
parent
951eb57718
commit
012b0eb8d6
10 changed files with 199 additions and 50 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue