diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx index 44c4e54e1..5ee6ea530 100644 --- a/components/common/Layout/Layout.tsx +++ b/components/common/Layout/Layout.tsx @@ -13,6 +13,7 @@ import { useAcceptCookies } from '@lib/hooks/useAcceptCookies' import { Sidebar, Button, LoadingDots } from '@components/ui' import PaymentMethodView from '@components/checkout/PaymentMethodView' import CheckoutSidebarView from '@components/checkout/CheckoutSidebarView' +import MenuSidebarView, { Link } from '../UserNav/MenuSidebarView' import LoginView from '@components/auth/LoginView' import s from './Layout.module.css' @@ -74,12 +75,14 @@ const ModalUI: FC = () => { ) : null } -const SidebarView: FC<{ sidebarView: string; closeSidebar(): any }> = ({ - sidebarView, - closeSidebar, -}) => { +const SidebarView: FC<{ + sidebarView: string + closeSidebar(): any + links: Link[] +}> = ({ sidebarView, closeSidebar, links }) => { return ( + {sidebarView === 'MOBILEMENU_VIEW' && } {sidebarView === 'CART_VIEW' && } {sidebarView === 'CHECKOUT_VIEW' && } {sidebarView === 'PAYMENT_VIEW' && } @@ -88,10 +91,14 @@ const SidebarView: FC<{ sidebarView: string; closeSidebar(): any }> = ({ ) } -const SidebarUI: FC = () => { +const SidebarUI: FC<{ links: any }> = ({ links }) => { const { displaySidebar, closeSidebar, sidebarView } = useUI() return displaySidebar ? ( - + ) : null } @@ -113,7 +120,7 @@ const Layout: FC = ({
{children}