mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
update layout for brewery page
This commit is contained in:
@@ -3,6 +3,7 @@ import { GetServerSideProps, NextPage } from 'next';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import getAllBreweryPosts from '@/services/BreweryPost/getAllBreweryPosts';
|
import getAllBreweryPosts from '@/services/BreweryPost/getAllBreweryPosts';
|
||||||
import BreweryPostQueryResult from '@/services/BreweryPost/types/BreweryPostQueryResult';
|
import BreweryPostQueryResult from '@/services/BreweryPost/types/BreweryPostQueryResult';
|
||||||
|
import Layout from '@/components/ui/Layout';
|
||||||
|
|
||||||
interface BreweryPageProps {
|
interface BreweryPageProps {
|
||||||
breweryPosts: BreweryPostQueryResult[];
|
breweryPosts: BreweryPostQueryResult[];
|
||||||
@@ -10,7 +11,7 @@ interface BreweryPageProps {
|
|||||||
|
|
||||||
const BreweryPage: NextPage<BreweryPageProps> = ({ breweryPosts }) => {
|
const BreweryPage: NextPage<BreweryPageProps> = ({ breweryPosts }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<Layout>
|
||||||
<h1 className="text-3xl font-bold underline">Brewery Posts</h1>
|
<h1 className="text-3xl font-bold underline">Brewery Posts</h1>
|
||||||
{breweryPosts.map((post) => {
|
{breweryPosts.map((post) => {
|
||||||
return (
|
return (
|
||||||
@@ -21,7 +22,7 @@ const BreweryPage: NextPage<BreweryPageProps> = ({ breweryPosts }) => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</>
|
</Layout>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user