Skip to content

Commit aad6b71

Browse files
committed
signup ページのブロックを忘れていたので追加
1 parent 021ea3e commit aad6b71

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

web/app/signup/page.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useState } from "react";
77
import { useRouter } from "next/navigation";
88
import type { Step1User } from "~/common/zod/types";
99
import Header from "~/components/Header";
10+
import { NavigateByAuthState } from "~/components/common/NavigateByAuthState";
1011
import { register } from "./functions";
1112
import Step1 from "./steps/step1_profile";
1213
import Step2, { type Step2Data } from "./steps/step2_img";
@@ -76,18 +77,20 @@ function Registration() {
7677
}
7778
export default function RegistrationPage() {
7879
return (
79-
<Box
80-
sx={{
81-
position: "absolute",
82-
top: "56px",
83-
bottom: 0,
84-
left: 0,
85-
right: 0,
86-
overflowY: "auto",
87-
}}
88-
>
89-
<Header title="登録/Register" />
90-
<Registration />
91-
</Box>
80+
<NavigateByAuthState type="toHomeForAuthenticated">
81+
<Box
82+
sx={{
83+
position: "absolute",
84+
top: "56px",
85+
bottom: 0,
86+
left: 0,
87+
right: 0,
88+
overflowY: "auto",
89+
}}
90+
>
91+
<Header title="登録/Register" />
92+
<Registration />
93+
</Box>
94+
</NavigateByAuthState>
9295
);
9396
}

0 commit comments

Comments
 (0)