-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move ConfigProvider to layout.tsx, as all pages need it (#3)
- Loading branch information
Showing
7 changed files
with
36 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
import React from "react"; | ||
import { getNileConfig } from "@/static/NileConfig"; | ||
import { LayoutCommon } from "@/components/LayoutCommon"; | ||
import { ConfigProvider } from "@/providers/ConfigProvider"; | ||
import { Listing } from "./Listing"; | ||
|
||
export default async function Home() { | ||
const nileConfig = await getNileConfig(); | ||
|
||
return ( | ||
<main> | ||
<ConfigProvider config={nileConfig}> | ||
<LayoutCommon> | ||
<Listing /> | ||
</LayoutCommon> | ||
</ConfigProvider> | ||
<LayoutCommon> | ||
<Listing /> | ||
</LayoutCommon> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
import React from "react"; | ||
import { getNileConfig } from "@/static/NileConfig"; | ||
import { LayoutCommon } from "@/components/LayoutCommon"; | ||
import { ConfigProvider } from "@/providers/ConfigProvider"; | ||
import { Listing } from "./Listing"; | ||
|
||
export default async function Home() { | ||
const nileConfig = await getNileConfig(); | ||
|
||
return ( | ||
<main> | ||
<ConfigProvider config={nileConfig}> | ||
<LayoutCommon> | ||
<Listing /> | ||
</LayoutCommon> | ||
</ConfigProvider> | ||
<LayoutCommon> | ||
<Listing /> | ||
</LayoutCommon> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters