Skip to content

Commit

Permalink
FIX : 브라우저 기본동작 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jobkaeHenry committed Dec 5, 2023
1 parent 294b359 commit d9b9f67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/src/app/(logoutOnly)/auth/signup/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const layout = ({ children }: layoutProps) => {
return (
<SignupPageContext.Provider value={{ formData, setFormData, disableBtn, setDisableBtn }}>
<Container sx={{ px: { xs: 0, sm: 4 } }} maxWidth={"lg"}>
<Paper component={'form'}
<Paper
sx={{
display: "flex",
flexDirection: "column",
Expand Down
26 changes: 15 additions & 11 deletions client/src/app/(logoutOnly)/auth/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function SignUpPage() {
const [doubleCheckPassword, setDoubleCheckPassword] = useState<string>("");

const { mutateAsync: signupHandler } = useSignupMutation();

const submitHandler = useCallback(async (data: SignupRequirement) => {
try {
await signupHandler(data);
Expand Down Expand Up @@ -99,7 +100,7 @@ export default function SignUpPage() {
>
<TextField
name="passwordcheck"
autoComplete="new-password"
autoComplete="off"
label="비밀번호"
type="password"
value={doubleCheckPassword}
Expand Down Expand Up @@ -161,16 +162,19 @@ export default function SignUpPage() {
variant="determinate"
value={(currentIndex / (totalPageNum - 1)) * 100}
/>
{MultistepForm}
<FixedBottomCTA
onClick={() => {
!isLastStep ? next() : submitHandler(formData);
}}
size="large"
disabled={disableBtn}
>
{!isLastStep ? "다음" : "투파이아 시작하기"}
</FixedBottomCTA>
<form onSubmit={(e)=>{
e.preventDefault()
!isLastStep ? next() : submitHandler(formData);
}}>
{MultistepForm}
<FixedBottomCTA
type='submit'
size="large"
disabled={disableBtn}
>
{!isLastStep ? "다음" : "투파이아 시작하기"}
</FixedBottomCTA>
</form>
</>
);
}

0 comments on commit d9b9f67

Please sign in to comment.