Skip to content

Commit

Permalink
繊維させたかったが、妥協
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi-dev committed Nov 9, 2024
1 parent 83f59b9 commit 7c8fd36
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion src/routes/user/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Authenticated({ user }: { user: User }): ReactElement {
return (
<Expanded items="center">
<VStack gap="10" p="10">
{swrUserKindOf.data?.type === "UNKNOWN" && (
{swrUserKindOf.data?.type === "UNKNOWN" ? (
<>
<p.span fontSize="xl" fontWeight="bold">
アカウントタイプを選択して下さい
Expand Down Expand Up @@ -106,6 +106,45 @@ function Authenticated({ user }: { user: User }): ReactElement {
</Button>
</Grid>
</>
) : (
<VStack gap="10">
<Button
onClick={() => {
void navigate({ to: "/" });
}}
variant="outlined"
w="auto"
>
<VStack gap="2">
<IconText
icon="bi:arrow-left-circle"
iconProps={{ height: "3em" }}
>
<p.p fontSize="lg" fontWeight="bold">
トップページに戻る
</p.p>
</IconText>
</VStack>
</Button>
<Button
onClick={() => {
void navigate({ to: "/projects" });
}}
variant="outlined"
w="auto"
>
<VStack gap="2">
<IconText
icon="bi:arrow-return-right"
iconProps={{ height: "3em" }}
>
<p.p fontSize="lg" fontWeight="bold">
プロジェクト一覧を見る
</p.p>
</IconText>
</VStack>
</Button>
</VStack>
)}
{selected === "sower" && (
<>
Expand Down

0 comments on commit 7c8fd36

Please sign in to comment.