|
|
|
@@ -8,6 +8,7 @@ import Typography from "@mui/material/Typography"; |
|
|
|
import { Metadata } from "next"; |
|
|
|
import Link from "next/link"; |
|
|
|
import { Suspense } from "react"; |
|
|
|
import { I18nProvider } from "@/i18n"; |
|
|
|
|
|
|
|
export const metadata: Metadata = { |
|
|
|
title: "Product", |
|
|
|
@@ -15,7 +16,7 @@ export const metadata: Metadata = { |
|
|
|
|
|
|
|
const productSetting: React.FC = async () => { |
|
|
|
const project = TypeEnum.PRODUCT; |
|
|
|
const { t } = await getServerI18n(project); |
|
|
|
const { t } = await getServerI18n("project"); |
|
|
|
// preloadClaims(); |
|
|
|
|
|
|
|
return ( |
|
|
|
@@ -38,9 +39,13 @@ const productSetting: React.FC = async () => { |
|
|
|
{t("Create product")} |
|
|
|
</Button> */} |
|
|
|
</Stack> |
|
|
|
<Suspense fallback={<ItemsSearch.Loading />}> |
|
|
|
<ItemsSearch /> |
|
|
|
</Suspense> |
|
|
|
|
|
|
|
<I18nProvider namespaces={["project", "common", "items"]}> |
|
|
|
<Suspense fallback={<ItemsSearch.Loading />}> |
|
|
|
<ItemsSearch /> |
|
|
|
</Suspense> |
|
|
|
</I18nProvider> |
|
|
|
|
|
|
|
</> |
|
|
|
); |
|
|
|
}; |
|
|
|
|