Skip to content

Commit

Permalink
chore(voucher): remove async from root layout (#4459)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 authored May 13, 2024
1 parent 568dd8e commit 2748e47
Showing 1 changed file with 10 additions and 7 deletions.
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

0 comments on commit 2748e47

Please sign in to comment.