Explorar el Código

Update I18N provider

bssp
MSI\2Fi hace 1 año
padre
commit
2f9d0f385c
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      src/app/(main)/invoice/page.tsx

+ 4
- 2
src/app/(main)/invoice/page.tsx Ver fichero

@@ -1,5 +1,5 @@
import { Metadata } from "next";
import { getServerI18n } from "@/i18n";
import { getServerI18n, I18nProvider } from "@/i18n";
import Add from "@mui/icons-material/Add";
import Button from "@mui/material/Button";
import Stack from "@mui/material/Stack";
@@ -36,7 +36,9 @@ const Invoice: React.FC = async () => {
</Button> */}
</Stack>
<Suspense fallback={<InvoiceSearch.Loading />}>
<InvoiceSearch />
<I18nProvider namespaces={['invoices','common']}>
<InvoiceSearch />
</I18nProvider>
</Suspense>
</>
)


Cargando…
Cancelar
Guardar