Refactor layout structure: simplify GlobalStoreProvider usage in RootLayout and add padding to main section in Home component for improved styling.
This commit is contained in:
parent
21fac2c68b
commit
044565d17c
|
|
@ -29,11 +29,7 @@ export default async function RootLayout({
|
||||||
<body
|
<body
|
||||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||||
>
|
>
|
||||||
<GlobalStoreProvider>
|
<GlobalStoreProvider>{children}</GlobalStoreProvider>
|
||||||
<Navbar />
|
|
||||||
|
|
||||||
{children}
|
|
||||||
</GlobalStoreProvider>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { SearchMovies } from "@/components/molecules/SearchMovies";
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main className="py-10">
|
||||||
<SearchMovies />
|
<SearchMovies />
|
||||||
<MovieList
|
<MovieList
|
||||||
heading="Upcoming"
|
heading="Upcoming"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue