mirror of
https://github.com/vercel/commerce.git
synced 2025-07-30 13:41:22 +00:00
react-aria modal sidebar
This commit is contained in:
@@ -15,7 +15,7 @@ interface Props {
|
||||
|
||||
const CoreLayout: FC<Props> = ({ className, children }) => {
|
||||
const rootClassName = cn(s.root, className)
|
||||
const { displaySidebar } = useUI()
|
||||
const { displaySidebar, closeSidebar } = useUI()
|
||||
|
||||
return (
|
||||
<div className={rootClassName}>
|
||||
@@ -28,7 +28,7 @@ const CoreLayout: FC<Props> = ({ className, children }) => {
|
||||
<main className={s.main}>{children}</main>
|
||||
</Container>
|
||||
<Footer />
|
||||
<Sidebar show={displaySidebar}>
|
||||
<Sidebar show={displaySidebar} close={closeSidebar}>
|
||||
<CartSidebarView />
|
||||
</Sidebar>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user