Skip to content

Commit

Permalink
chore: 배포 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Mar 4, 2024
2 parents 06c95ab + fd99d41 commit 444c5cd
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 4 deletions.
Binary file added public/assets/세정제(1).webp
Binary file not shown.
Binary file added public/assets/세정제(2).webp
Binary file not shown.
Binary file added public/assets/세정제(3).webp
Binary file not shown.
Binary file added public/assets/세정제(4).webp
Binary file not shown.
Binary file added public/assets/세정제(5).webp
Binary file not shown.
Binary file added public/assets/코팅제(1).webp
Binary file not shown.
Binary file added public/assets/코팅제(2).webp
Binary file not shown.
Binary file added public/assets/코팅제(3).webp
Binary file not shown.
Binary file added public/assets/코팅제(4).webp
Binary file not shown.
Binary file added public/assets/코팅제(5).webp
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/(my-page)/my-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function MyProfilePage() {
</Link>
</li>
<li className={cx('linkInfoContainer')}>
<Link href="https://forms.gle/ty3EwK1Qmwe5FW1w6">
<Link href="https://forms.gle/ty3EwK1Qmwe5FW1w6" target="_blank">
문의하기
<LinkArrow />
</Link>
Expand Down
31 changes: 30 additions & 1 deletion src/components/shared/product-article/ProductArticle.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useCallback } from 'react';

import classNames from 'classnames/bind';
import Image from 'next/image';
import Link from 'next/link';
Expand All @@ -17,13 +19,40 @@ const cx = classNames.bind(styles);
const safeIcon = '/assets/icons/safe.png';
const warningIcon = '/assets/icons/warning.png';

type Type = {
[key: string]: {
[key: number]: string
}
};

const TYPE: Type = {
세정제: {
0: '/assets/세정제(1).webp',
1: '/assets/세정제(2).webp',
2: '/assets/세정제(3).webp',
3: '/assets/세정제(4).webp',
4: '/assets/세정제(5).webp',
},
코팅제: {
0: '/assets/코팅제(1).webp',
1: '/assets/코팅제(2).webp',
2: '/assets/코팅제(3).webp',
3: '/assets/코팅제(4).webp',
4: '/assets/코팅제(5).webp',
},
};

function ProductArticle({ isRow = false, itemData }: ProductArticleProps) {
const getRandomNumber = useCallback(() => {
return Math.floor(Math.random() * 5); // 0 이상 5 미만의 난수를 생성하고 소수점 이하 버림
}, []);
return (
<Link href={`/product/${itemData.productNo}`}>
<article className={cx('container', { row: isRow })}>
<div className={cx('imgBox')}>
<Image
src={itemData.imageSource ?? '/assets/productList.webp'}
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
src={itemData.item === '코팅제' ? TYPE.코팅제[getRandomNumber()] : TYPE.세정제[getRandomNumber()]}
alt="제품 이미지"
width={0}
height={0}
Expand Down
4 changes: 2 additions & 2 deletions src/remote/api/requests/auth/auth.post.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
FindId, FindPassword, RefreshTokenType, ISignIn, ISignUp, UserInfoType, IResetPassword,
} from '../../types/auth';
import { ICommon } from '../../types/common';
import { postRequest, putRequest } from '../requests.api';
import { postRequest } from '../requests.api';

export const signup = async ({
id, password, email, gender, age,
Expand Down Expand Up @@ -66,7 +66,7 @@ export const changePassword = async ({
export const resetPassword = async ({
password, token = '',
}: IResetPassword) => {
const response = await putRequest<null, IResetPassword>('/member/reset-password', {
const response = await postRequest<null, IResetPassword>('/member/reset-password', {
password, token,
});

Expand Down

0 comments on commit 444c5cd

Please sign in to comment.