-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add delete account feature
- Loading branch information
1 parent
e9e3e96
commit 8a2288a
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Box, Typography, Button, useTheme } from '@mui/material'; | ||
import { TaskTreeLogoIcon } from '@/features/common/TaskTreesLogo'; | ||
import ReplyIcon from '@mui/icons-material/Reply'; | ||
import SettingsIcon from '@mui/icons-material/Settings'; | ||
|
||
export const DeleteAccount = () => { | ||
const theme = useTheme(); | ||
return ( | ||
<Box sx={{ textAlign: 'center' }}> | ||
<Typography sx={{ mt: 5, marginBottom: 0, justifyContent: 'center', alignItems: 'center', display: 'flex' }} variant='h3'> | ||
<TaskTreeLogoIcon sx={{ width: '35px', height: '35px', marginRight: '10px', color: theme.palette.primary.main }} /> | ||
TaskTrees | ||
</Typography> | ||
<Typography variant='h5' sx={{ marginY: 5 }}> | ||
アカウントの削除について | ||
</Typography> | ||
<Typography variant='body1' sx={{ textAlign: 'left' }}> | ||
アカウントの削除は、ログイン後の | ||
<Button variant='outlined' startIcon={<SettingsIcon />}> | ||
設定 | ||
</Button> | ||
を押して表示されるメニューから「アカウント削除」を選択することで行うことができます。サーバに保存されたデータやメールアドレスなどのアカウント情報はすべて削除され、後から復元することはできません。アカウントの削除を行う前に、データのバックアップを取得することをお勧めします。 | ||
</Typography> | ||
<Button | ||
variant={'outlined'} | ||
startIcon={<ReplyIcon />} | ||
onClick={() => { | ||
window.location.href = '/'; | ||
}} | ||
sx={{ mb: 10 }} | ||
> | ||
アプリのトップに戻る | ||
</Button> | ||
</Box> | ||
); | ||
}; |