Skip to content

Commit

Permalink
Merge pull request #146 from MurakawaTakuya/fix/145-guest-logout
Browse files Browse the repository at this point in the history
ゲストログインをしているときにログアウトボタンを表示
  • Loading branch information
MurakawaTakuya authored Jan 10, 2025
2 parents 98dc256 + 919dc48 commit bde7ecf
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/Components/Account/LoggedInView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,19 @@ export default function LoggedInView() {
)}

{user.loginType === "Guest" && (
<Typography color="danger">
ゲストユーザーは閲覧以外の機能は使用できません。
全ての機能を利用するにはログインが必要です。
</Typography>
<>
<Typography color="danger">
ゲストユーザーは閲覧以外の機能は使用できません。
全ての機能を利用するにはログインが必要です。
</Typography>
<RoundedButton
variant="contained"
onClick={handleSignOut}
sx={{ width: "150px", margin: "0 auto" }}
>
ログアウト
</RoundedButton>
</>
)}

{user.loginType !== "Guest" && user.isMailVerified && (
Expand Down

0 comments on commit bde7ecf

Please sign in to comment.