Skip to content

Commit

Permalink
fix: type error of i18nextProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Allianaab2m committed Aug 18, 2024
1 parent 07e95de commit e7d8db5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import {
import "@radix-ui/themes/styles.css";
import "./styles/font.css";
import { Theme } from "@radix-ui/themes";
import type { ReactNode } from "react";
import { I18nextProvider } from "react-i18next";
import i18n from "../i18n/config";

export function Layout({ children }: { children: React.ReactNode }) {
export function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<head>
Expand All @@ -21,7 +22,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
<Links />
</head>
<body>
<I18nextProvider i18n={i18n}>
<I18nextProvider i18n={i18n.default}>
<Theme>{children}</Theme>
</I18nextProvider>
<ScrollRestoration />
Expand Down

0 comments on commit e7d8db5

Please sign in to comment.