mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
♻️ enhan: move CustomShapeSvg to _app
:%s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ThemeProvider } from 'next-themes';
|
||||
import type { AppProps } from 'next/app';
|
||||
import React, { FC, useEffect } from 'react';
|
||||
import { Head } from 'src/components/common';
|
||||
import { CustomShapeSvg, Head } from 'src/components/common';
|
||||
import 'keen-slider/keen-slider.min.css';
|
||||
import '../src/styles/main.scss';
|
||||
|
||||
@@ -19,6 +19,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
<>
|
||||
<Head />
|
||||
<ThemeProvider>
|
||||
<CustomShapeSvg />
|
||||
<Layout pageProps={pageProps}>
|
||||
<Component {...pageProps} />
|
||||
</Layout>
|
||||
|
@@ -3,7 +3,7 @@ import { useRouter } from 'next/router'
|
||||
import { FC } from 'react'
|
||||
import { useModalCommon } from 'src/components/hooks'
|
||||
import { BRAND, CATEGORY, FEATURED } from 'src/utils/constanst.utils'
|
||||
import { CustomShapeSvg, ScrollToTop } from '..'
|
||||
import { ScrollToTop } from '..'
|
||||
import Footer from '../Footer/Footer'
|
||||
import Header from '../Header/Header'
|
||||
import MenuNavigationProductList from '../MenuNavigationProductList/MenuNavigationProductList'
|
||||
@@ -31,8 +31,6 @@ const Layout: FC<Props> = ({ children }) => {
|
||||
<div className={s.mainLayout}>
|
||||
<Header toggleFilter={toggleFilter} visibleFilter={visibleFilter} />
|
||||
<main >{children}</main>
|
||||
|
||||
<CustomShapeSvg/>
|
||||
<div className={s.filter}><MenuNavigationProductList categories={CATEGORY} brands={BRAND} featured={FEATURED} visible={visibleFilter} onClose={closeFilter} /> </div>
|
||||
<ScrollToTop visibilityHeight={1500} />
|
||||
<Footer />
|
||||
|
Reference in New Issue
Block a user