Skip to content

Commit

Permalink
muiの警告対処
Browse files Browse the repository at this point in the history
  • Loading branch information
kgtkr committed Jan 16, 2024
1 parent b053bc4 commit 8953937
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/client/src/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,30 +176,33 @@ export function App(): JSX.Element {
onClose={() => setAnchorEl(null)}
>
{user.value !== null ? (
<>
[
<MenuItem
to={routes.profiles.to({})}
component={Link}
onClick={() => setAnchorEl(null)}
key="profile"
>
プロフ管理
</MenuItem>
</MenuItem>,
<MenuItem
to={routes.settings.to({})}
component={Link}
onClick={() => setAnchorEl(null)}
key="settings"
>
設定
</MenuItem>
</MenuItem>,
<MenuItem
onClick={() => {
setAnchorEl(null);
user.update(null);
}}
key="logout"
>
ログアウト
</MenuItem>
</>
</MenuItem>,
]
) : (
<MenuItem
onClick={() => setAnchorEl(null)}
Expand Down

0 comments on commit 8953937

Please sign in to comment.