diff --git a/apps/venus/src/app/AboutUs.tsx b/apps/venus/src/app/AboutUs.tsx index 19dfbd4a8a..b20420a556 100644 --- a/apps/venus/src/app/AboutUs.tsx +++ b/apps/venus/src/app/AboutUs.tsx @@ -1,18 +1,13 @@ import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; -import { Box, Button, Grid, Typography } from '@mui/joy'; -import Option from '@mui/joy/Option'; -import Select from '@mui/joy/Select'; +import { Box, Grid, Typography } from '@mui/joy'; // eslint-disable-next-line no-restricted-imports import { useMediaQuery } from '@mui/material'; - import 'github-markdown-css'; import AboutText from './about.mdx'; -import { AFFiNEFooter, AFFiNEImage } from './Common'; -import { options } from './i18n'; +import { AFFiNEFooter, AFFiNEHeader, AFFiNEImage } from './Common'; import KeepUpdate from './keeupdate.png'; - export const AboutUs = () => { const matches = useMediaQuery('(max-width: 1024px)'); const navigate = useNavigate(); @@ -23,58 +18,7 @@ export const AboutUs = () => { }; return ( <> - - - - - - - - - + - - - - - - - - - - - + ); }; + +export const AFFiNEHeader = () => { + const matches = useMediaQuery('(max-width: 1024px)'); + const navigate = useNavigate(); + const { i18n } = useTranslation(); + + const changeLanguage = (event: any) => { + i18n.changeLanguage(event); + }; + const matchesIPAD = useMediaQuery('(max-width: 768px)'); + return ( + + + + + + + + + + + + ); +};