diff --git a/web/src/routes/tabs/settings/aboutUs.tsx b/web/src/routes/tabs/settings/aboutUs.tsx index 300180d1..ba1ef143 100644 --- a/web/src/routes/tabs/settings/aboutUs.tsx +++ b/web/src/routes/tabs/settings/aboutUs.tsx @@ -1,34 +1,19 @@ -import { ArrowBack, GitHub, Language } from "@mui/icons-material"; +import { GitHub, Language } from "@mui/icons-material"; import XIcon from "@mui/icons-material/X"; -import { Box, IconButton, Link, Typography } from "@mui/material"; -import { useNavigate } from "react-router-dom"; +import { Box, Link, Typography } from "@mui/material"; +import TopNavigation from "./components/TopNavigation"; export default function AboutUs() { - const navigate = useNavigate(); - return ( - navigate("/settings")} - > - - - + - - About Us - + { + navigate("/settings"); + }} + > + + + + {title} + + + ); +} diff --git a/web/src/routes/tabs/settings/contact.tsx b/web/src/routes/tabs/settings/contact.tsx index e4cc507f..1a80c31c 100644 --- a/web/src/routes/tabs/settings/contact.tsx +++ b/web/src/routes/tabs/settings/contact.tsx @@ -1,27 +1,16 @@ -import { ArrowBack } from "@mui/icons-material"; -import { Box, Button, IconButton, Typography } from "@mui/material"; -import { useNavigate } from "react-router-dom"; +import { Box, Button, Typography } from "@mui/material"; +import TopNavigation from "./components/TopNavigation"; export default function Contact() { - const navigate = useNavigate(); - return ( - navigate("/settings")} - > - - - + - - お問い合わせ - - ご利用いただきありがとうございます。サービスに関するご意見やバグ報告がございましたら、以下のリンクからお問い合わせください。皆様のフィードバックは、サービスの改善に役立てさせていただきます。 diff --git a/web/src/routes/tabs/settings/disclaimer.tsx b/web/src/routes/tabs/settings/disclaimer.tsx index de6d90bf..0e2c2d59 100644 --- a/web/src/routes/tabs/settings/disclaimer.tsx +++ b/web/src/routes/tabs/settings/disclaimer.tsx @@ -1,27 +1,16 @@ -import { ArrowBack } from "@mui/icons-material"; -import { Box, IconButton, Typography } from "@mui/material"; -import { useNavigate } from "react-router-dom"; +import { Box, Typography } from "@mui/material"; +import TopNavigation from "./components/TopNavigation"; export default function Disclaimer() { - const navigate = useNavigate(); - return ( - navigate("/settings")} - > - - - + - - 免責事項 - - + + - { - navigate("/settings"); - }} - > - - - - あなたのカード - - navigate(back ? "/edit/courses" : "/edit/profile")} + startIcon={} sx={{ - position: "absolute", - top: "0px", - right: "32px", + paddingRight: "0px", + // (画面幅 - カード幅) / 2 - profile の padding + marginRight: + "calc(calc(calc(100vw - min(40dvh, 87.5vw)) / 2) - 8px)", }} > - navigate(back ? "/edit/courses" : "/edit/profile")} - > - - - + 編集する + - - setBack(back)} /> - + ); }