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
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<GlobalStoreProvider>
|
||||
<Navbar />
|
||||
|
||||
{children}
|
||||
</GlobalStoreProvider>
|
||||
<GlobalStoreProvider>{children}</GlobalStoreProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { SearchMovies } from "@/components/molecules/SearchMovies";
|
|||
|
||||
export default async function Home() {
|
||||
return (
|
||||
<main>
|
||||
<main className="py-10">
|
||||
<SearchMovies />
|
||||
<MovieList
|
||||
heading="Upcoming"
|
||||
|
|
|
|||
Loading…
Reference in New Issue