ソースを参照

Add component for bssp

bssp
MSI\2Fi 1年前
コミット
29b9a36e8b
4個のファイルの変更46行の追加0行の削除
  1. +33
    -0
      src/app/(main)/bssp/page.tsx
  2. +7
    -0
      src/components/NavigationContent/NavigationContent.tsx
  3. +3
    -0
      src/i18n/en/bssp.json
  4. +3
    -0
      src/i18n/zh/bssp.json

+ 33
- 0
src/app/(main)/bssp/page.tsx ファイルの表示

@@ -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;

+ 7
- 0
src/components/NavigationContent/NavigationContent.tsx ファイルの表示

@@ -36,6 +36,7 @@ import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
import EmojiEventsIcon from "@mui/icons-material/EmojiEvents";
import FileUploadIcon from '@mui/icons-material/FileUpload';
import EmailIcon from "@mui/icons-material/Email";
import TerminalIcon from '@mui/icons-material/Terminal';

import {
IMPORT_INVOICE,
@@ -109,6 +110,12 @@ const NavigationContent: React.FC<Props> = ({ abilities, username }) => {
path: "/home",
showOnMobile: true,
},
{
icon: <TerminalIcon />,
label: "BSSP",
path: "/bssp",
showOnMobile: true,
},
{
icon: <Dashboard />,
label: t("Dashboard"),


+ 3
- 0
src/i18n/en/bssp.json ファイルの表示

@@ -0,0 +1,3 @@
{
"SSSSS" : "AAAAAA"
}

+ 3
- 0
src/i18n/zh/bssp.json ファイルの表示

@@ -0,0 +1,3 @@
{
}

読み込み中…
キャンセル
保存