File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { useState } from "react";
77import { useRouter } from "next/navigation" ;
88import type { Step1User } from "~/common/zod/types" ;
99import Header from "~/components/Header" ;
10+ import { NavigateByAuthState } from "~/components/common/NavigateByAuthState" ;
1011import { register } from "./functions" ;
1112import Step1 from "./steps/step1_profile" ;
1213import Step2 , { type Step2Data } from "./steps/step2_img" ;
@@ -76,18 +77,20 @@ function Registration() {
7677}
7778export 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}
You can’t perform that action at this time.
0 commit comments