diff --git a/components/ConditionalWrapper.js b/components/ConditionalWrapper.js index 19dd698f..b99bfa93 100644 --- a/components/ConditionalWrapper.js +++ b/components/ConditionalWrapper.js @@ -1,11 +1,3 @@ -// import type { ReactNode } from 'react' - -// type ConditionalWrapperProps = { -// condition: boolean -// wrapper: (children: ReactNode) => ReactNode -// children: ReactNode -// } - const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children diff --git a/components/Layout.js b/components/Layout.js index 01c487cc..0e15c04c 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -4,7 +4,7 @@ import { useMemo } from 'react' import { StyledStickyNavBar } from 'components/SharedStyledComponents' import { UserProvider } from 'hooks/useUser' import { useRouter } from 'next/router' -import ConditionalWrapper from './ConditionalWrapper' +// import ConditionalWrapper from './ConditionalWrapper' import Footer from './Footer' import Header from './Header' import NavBar from './NavBar'