Author | SHA1 | Message | Date |
---|---|---|---|
|
2f9d0f385c | Update I18N provider | 1 year ago |
|
3d791a24e8 | Merge branch 'main' of https://git.2fi-solutions.com/wayne.lee/tsms into bssp | 1 year ago |
|
29b9a36e8b | Add component for bssp | 1 year ago |
@@ -0,0 +1,33 @@ | |||||
import { Metadata } from "next"; | |||||
import { getServerI18n } from "@/i18n"; | |||||
import Add from "@mui/icons-material/Add"; | |||||
import Button from "@mui/material/Button"; | |||||
import Stack from "@mui/material/Stack"; | |||||
import Typography from "@mui/material/Typography"; | |||||
import Link from "next/link"; | |||||
import { Suspense } from "react"; | |||||
const Bssp: React.FC = async () => { | |||||
const { t } = await getServerI18n("bssp") | |||||
return ( | |||||
<> | |||||
<Stack | |||||
direction="row" | |||||
justifyContent="space-between" | |||||
flexWrap="wrap" | |||||
rowGap={2} | |||||
> | |||||
<Typography variant="h4" marginInlineEnd={2}> | |||||
{t("Bssp")} | |||||
</Typography> | |||||
</Stack> | |||||
<Suspense> | |||||
{t("SSSSS")} | |||||
</Suspense> | |||||
</> | |||||
) | |||||
}; | |||||
export default Bssp; |
@@ -1,5 +1,5 @@ | |||||
import { Metadata } from "next"; | import { Metadata } from "next"; | ||||
import { getServerI18n } from "@/i18n"; | |||||
import { getServerI18n, I18nProvider } from "@/i18n"; | |||||
import Add from "@mui/icons-material/Add"; | import Add from "@mui/icons-material/Add"; | ||||
import Button from "@mui/material/Button"; | import Button from "@mui/material/Button"; | ||||
import Stack from "@mui/material/Stack"; | import Stack from "@mui/material/Stack"; | ||||
@@ -36,7 +36,9 @@ const Invoice: React.FC = async () => { | |||||
</Button> */} | </Button> */} | ||||
</Stack> | </Stack> | ||||
<Suspense fallback={<InvoiceSearch.Loading />}> | <Suspense fallback={<InvoiceSearch.Loading />}> | ||||
<InvoiceSearch /> | |||||
<I18nProvider namespaces={['invoices','common']}> | |||||
<InvoiceSearch /> | |||||
</I18nProvider> | |||||
</Suspense> | </Suspense> | ||||
</> | </> | ||||
) | ) | ||||
@@ -36,6 +36,7 @@ import ManageAccountsIcon from "@mui/icons-material/ManageAccounts"; | |||||
import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; | import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; | ||||
import FileUploadIcon from '@mui/icons-material/FileUpload'; | import FileUploadIcon from '@mui/icons-material/FileUpload'; | ||||
import EmailIcon from "@mui/icons-material/Email"; | import EmailIcon from "@mui/icons-material/Email"; | ||||
import TerminalIcon from '@mui/icons-material/Terminal'; | |||||
import { | import { | ||||
IMPORT_INVOICE, | IMPORT_INVOICE, | ||||
@@ -109,6 +110,12 @@ const NavigationContent: React.FC<Props> = ({ abilities, username }) => { | |||||
path: "/home", | path: "/home", | ||||
showOnMobile: true, | showOnMobile: true, | ||||
}, | }, | ||||
{ | |||||
icon: <TerminalIcon />, | |||||
label: "BSSP", | |||||
path: "/bssp", | |||||
showOnMobile: true, | |||||
}, | |||||
{ | { | ||||
icon: <Dashboard />, | icon: <Dashboard />, | ||||
label: t("Dashboard"), | label: t("Dashboard"), | ||||
@@ -0,0 +1,3 @@ | |||||
{ | |||||
"SSSSS" : "AAAAAA" | |||||
} |
@@ -0,0 +1,3 @@ | |||||
{ | |||||
} |