mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Remove Layout in page components, used in _app
This fixes a glitch where the theme change button would stop working on client route change.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { NextPage } from 'next';
|
||||
import Layout from '@/components/ui/Layout';
|
||||
|
||||
import BeerCard from '@/components/BeerIndex/BeerCard';
|
||||
import Head from 'next/head';
|
||||
import Link from 'next/link';
|
||||
@@ -32,7 +32,7 @@ const BeerPage: NextPage = () => {
|
||||
const pageRef: MutableRefObject<HTMLDivElement | null> = useRef(null);
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<>
|
||||
<Head>
|
||||
<title>Beer</title>
|
||||
<meta name="description" content="Beer posts" />
|
||||
@@ -105,7 +105,7 @@ const BeerPage: NextPage = () => {
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user