Skip to content
2 changes: 1 addition & 1 deletion components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const InputField = forwardRef<HTMLInputElement, InputFieldProps>(
const [showPassword, setShowPassword] = useState(false);

const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const newValue = e.target.value.trim();
const newValue = e.target.value;
onChange(e);
if (label !== '์ƒ์ผ') {
const error = validate(newValue);
Expand Down
8 changes: 4 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function LandingPage() {
alt="์œ„ํ‚ค ์ด๋ฏธ์ง€"
width={498}
height={590}
className="size-auto object-contain mo:h-auto mo:w-[336px]"
className="h-auto w-auto object-contain mo:h-auto mo:w-[336px]"
priority
/>
</motion.div>
Expand Down Expand Up @@ -129,7 +129,7 @@ export default function LandingPage() {
alt="ํƒ€์ดํ•‘ ์ด๋ฏธ์ง€"
width={364}
height={681}
className="h-[681px] w-[364px] object-contain mo:h-[249px] mo:w-[133px] ta:h-[490px] ta:w-[262px]"
className="h-auto w-auto object-contain mo:h-[160px] mo:w-[133px] ta:h-[310px] ta:w-[262px]"
priority
/>
</motion.div>
Expand All @@ -140,7 +140,7 @@ export default function LandingPage() {
alt="ํ…์ŠคํŠธ ์ด๋ฏธ์ง€"
width={520}
height={681}
className="size-auto object-contain mo:w-[192px] ta:w-[365px]"
className="h-auto w-auto object-contain mo:w-[192px] ta:w-[365px]"
priority
/>
</div>{' '}
Expand Down Expand Up @@ -244,7 +244,7 @@ export default function LandingPage() {
>
<Image
src="/images/img-text-green.png"
className="h-auto w-full object-cover"
className="h-auto w-auto object-contain"
alt="ํ…์ŠคํŠธ ์ด๋ฏธ์ง€"
width={913}
height={309}
Expand Down
14 changes: 5 additions & 9 deletions pages/mypage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useSnackbar } from 'context/SnackBarContext';
import { AxiosError } from 'axios';

function MyPage(): React.ReactElement {
const { profile } = useProfileContext();
const { profile, setAccessToken } = useProfileContext();
const [currentPassword, setCurrentPassword] = useState('');
const [newPassword, setNewPassword] = useState('');
const [newPasswordConfirm, setNewPasswordConfirm] = useState('');
Expand Down Expand Up @@ -76,10 +76,9 @@ function MyPage(): React.ReactElement {
setCurrentPassword('');
setNewPassword('');
setNewPasswordConfirm('');

setTimeout(() => {
router.push('/login');
}, 2000);
setAccessToken(null);
localStorage.removeItem('refreshToken');
router.push('/login');
} catch (error) {
if (error instanceof AxiosError) {
showSnackbar(error.message, 'fail');
Expand Down Expand Up @@ -115,10 +114,7 @@ function MyPage(): React.ReactElement {

// ์ด๋ฏธ ํ”„๋กœํ•„์ด ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ
if (errorResponse?.code) {
// 2์ดˆ ํ›„ ํ•ด๋‹น ํ”„๋กœํ•„๋กœ ์ด๋™
setTimeout(async () => {
await router.push(`/wiki/${errorResponse.code}`);
}, 2000);
await router.push(`/wiki/${errorResponse.code}`);
return;
}
}
Expand Down
11 changes: 9 additions & 2 deletions pages/signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ function SignUp() {
};

const handlePasswordChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setPassword(e.target.value);
const newPassword = e.target.value;
setPassword(newPassword);
// ๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ๋ณ€๊ฒฝ๋  ๋•Œ๋งˆ๋‹ค ๋น„๋ฐ€๋ฒˆํ˜ธ ํ™•์ธ๋ž€์˜ ์œ ํšจ์„ฑ๋„ ํ•จ๊ป˜ ์ฒดํฌ
if (passwordConfirm) {
handleValidation('passwordConfirm', passwordConfirm === newPassword);
}
};

const handlePasswordConfirmChange = (
e: React.ChangeEvent<HTMLInputElement>
) => {
setPasswordConfirm(e.target.value);
const newPasswordConfirm = e.target.value;
setPasswordConfirm(newPasswordConfirm);
handleValidation('passwordConfirm', newPasswordConfirm === password);
};

const handleNameChange = (e: React.ChangeEvent<HTMLInputElement>) => {
Expand Down
Binary file modified public/images/img-bell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-belt1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-belt2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-belt3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-belt4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-text-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-text-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-text-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-wiki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/img-write.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading