Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(voucher): remove async from root layout #4459

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions apps/voucher/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,26 @@ const { NEXT_PUBLIC_CORE_URL, NEXT_PUBLIC_VOUCHER_URL } = env

const inter = Inter_Tight({ subsets: ["latin"], display: "auto" })

export default async function RootLayout({ children }: { children: React.ReactNode }) {
export default function RootLayout({ children }: { children: React.ReactNode }) {
const coreGqlUrl = NEXT_PUBLIC_CORE_URL
const voucherUrl = NEXT_PUBLIC_VOUCHER_URL

return (
<SessionProvider>
<ApolloWrapper
config={{
coreGqlUrl: NEXT_PUBLIC_CORE_URL,
voucherUrl: NEXT_PUBLIC_VOUCHER_URL,
coreGqlUrl,
voucherUrl,
}}
>
<html lang="en">
<CurrencyProvider>
<CurrencyProvider>
<html lang="en">
<body className={inter.className}>
<Navigation />
{children}
</body>
</CurrencyProvider>
</html>
</html>
</CurrencyProvider>
</ApolloWrapper>
</SessionProvider>
)
Expand Down
Loading