diff --git a/components/Input.tsx b/components/Input.tsx index d017a63..dfee754 100644 --- a/components/Input.tsx +++ b/components/Input.tsx @@ -59,6 +59,17 @@ const InputField = forwardRef( return type; }; + const getAutoComplete = () => { + switch (type) { + case 'password': + return 'current-password'; + case 'passwordConfirm': + return 'new-password'; + default: + return undefined; + } + }; + const togglePasswordVisibility = () => { setShowPassword(!showPassword); }; @@ -117,6 +128,7 @@ const InputField = forwardRef( ? new Date().toISOString().split('T')[0] : undefined } + autoComplete={getAutoComplete()} /> {(type === 'password' || type === 'passwordConfirm') && ( - 위키 이미지 + + 위키 이미지 + - {/* 친구의 위키 */}
-
-
- - 친구의 위키, -
- 직접 작성해 봐요 - - } - align="left" - /> +
+
+ + 친구의 위키, +
+ 직접 작성해 봐요 + + } + align="left" + /> + + 타이핑 이미지 + +
+ 타이핑 이미지 -
- - 텍스트 이미지 -
-
- + {' '} + + {' '} {/* share */}
- 벨트 이미지 -
- - {/* view */} -
-
- - 친구들이 달아준 -
- 내용을 확인해 봐요 - - } - align="left" - /> +
- 텍스트 이미지 - 벨 이미지 - 알림 이미지 + {[1, 2, 3, 4, 5, 6].map((set) => ( + + 벨트 이미지1 + 벨트 이미지2 + 벨트 이미지3 + 벨트 이미지4 + + ))}
- + {/* view */} +
+ +
+ + 친구들이 달아준 +
+ 내용을 확인해 봐요 + + } + align="left" + /> +
+ 텍스트 이미지 +
+ + 벨 이미지 + +
+ 알림 이미지 +
+
{' '} +
+
{/* final */}
-

- 나만의 위키 만들어 보기 -

- +

+ 나만의 위키 만들어 보기 +

+ {' '} +
diff --git a/pages/login/index.tsx b/pages/login/index.tsx index 5710186..6e732e1 100644 --- a/pages/login/index.tsx +++ b/pages/login/index.tsx @@ -66,7 +66,7 @@ export default function Login() { }; return ( -
+

diff --git a/pages/mypage/index.tsx b/pages/mypage/index.tsx index c67a185..5cbbba5 100644 --- a/pages/mypage/index.tsx +++ b/pages/mypage/index.tsx @@ -155,15 +155,16 @@ function MyPage(): React.ReactElement { const inputContainerStyle = 'flex w-full flex-col gap-[8px]'; return ( -
-
-

+
+
+

계정설정

+ {/* 비밀번호 변경 폼 */}
@@ -205,13 +206,14 @@ function MyPage(): React.ReactElement {
+ {/* 위키가 없을 때만 구분선과 위키 생성 폼 표시 */} {!profile?.code && ( <> -
+
@@ -231,7 +233,6 @@ function MyPage(): React.ReactElement { onChange={handleAnswerChange} placeholder="답을 입력해 주세요" /> -