From 07384bb42ed7b9361cab5a62ddaa536500b5f315 Mon Sep 17 00:00:00 2001
From: Minchan <98478661+itscold96@users.noreply.github.com>
Date: Tue, 30 Jul 2024 17:52:40 +0900
Subject: [PATCH 01/18] =?UTF-8?q?fix:=20=ED=94=84=EB=A1=9C=EC=A0=9D?=
=?UTF-8?q?=ED=8A=B8=20=EB=82=B4=20=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vscode/settings.json | 4 +++-
.../{infomations => information}/addItemList.ts | 4 ++--
.../brandFeatureList.ts | 0
.../{infomations => information}/fileExtension.ts | 0
.../{infomations => information}/mediaQuerySize.ts | 0
.../{infomations => information}/snsLinks.ts | 0
src/components/@shared/Footer.tsx | 4 ++--
src/components/@shared/Header.tsx | 6 +++---
src/components/@shared/HeaderLinkSection.tsx | 2 +-
src/components/@shared/Pagination.tsx | 6 +++---
src/components/addItem/ImageRegistration.tsx | 10 +++++-----
src/components/addItem/InputSection.tsx | 4 ++--
src/components/addItem/RegistrationHeader.tsx | 6 +++---
src/components/addItem/TagList.tsx | 2 +-
src/components/home/BrandBottom.tsx | 2 +-
src/components/home/BrandContainer.tsx | 2 +-
src/components/home/BrandTop.tsx | 2 +-
src/components/home/FeatItem.tsx | 2 +-
src/components/home/FeatList.tsx | 4 ++--
src/components/market/BestProductList.tsx | 2 +-
src/components/market/BestProductsSection.tsx | 6 +++---
src/components/market/ForSaleProductList.tsx | 6 +++---
src/components/market/ForSaleProductSection.tsx | 4 ++--
src/components/market/ProductManagement.tsx | 6 +++---
src/components/productInfo/ProductDetail.tsx | 2 +-
src/components/productInfo/ProductSpecs.tsx | 2 +-
src/pages/AddProduct.tsx | 14 +++++++-------
src/pages/Market.tsx | 4 ++--
src/styles/@shared/global/init.css | 2 +-
src/styles/@shared/shared.ts | 2 +-
src/styles/auth/containerStyles.ts | 2 +-
src/types/@shared/addProductTypes.ts | 8 ++++----
32 files changed, 61 insertions(+), 59 deletions(-)
rename src/ constants/{infomations => information}/addItemList.ts (78%)
rename src/ constants/{infomations => information}/brandFeatureList.ts (100%)
rename src/ constants/{infomations => information}/fileExtension.ts (100%)
rename src/ constants/{infomations => information}/mediaQuerySize.ts (100%)
rename src/ constants/{infomations => information}/snsLinks.ts (100%)
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 0967ef424..a90e172e6 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1 +1,3 @@
-{}
+{
+ "cSpell.words": ["ADDITEM", "kakao", "Signup", "uuidv"]
+}
diff --git a/src/ constants/infomations/addItemList.ts b/src/ constants/information/addItemList.ts
similarity index 78%
rename from src/ constants/infomations/addItemList.ts
rename to src/ constants/information/addItemList.ts
index c7e7b28d2..45575893b 100644
--- a/src/ constants/infomations/addItemList.ts
+++ b/src/ constants/information/addItemList.ts
@@ -1,6 +1,6 @@
-import { IAddItemFeildset } from 'types/@shared/addProductTypes';
+import { IAddItemFieldset } from 'types/@shared/addProductTypes';
-export const ADDITEM_FEIELDSET_LIST: IAddItemFeildset[] = [
+export const ADDITEM_FIELDSET_LIST: IAddItemFieldset[] = [
{
subTitle: '상품명',
name: 'title',
diff --git a/src/ constants/infomations/brandFeatureList.ts b/src/ constants/information/brandFeatureList.ts
similarity index 100%
rename from src/ constants/infomations/brandFeatureList.ts
rename to src/ constants/information/brandFeatureList.ts
diff --git a/src/ constants/infomations/fileExtension.ts b/src/ constants/information/fileExtension.ts
similarity index 100%
rename from src/ constants/infomations/fileExtension.ts
rename to src/ constants/information/fileExtension.ts
diff --git a/src/ constants/infomations/mediaQuerySize.ts b/src/ constants/information/mediaQuerySize.ts
similarity index 100%
rename from src/ constants/infomations/mediaQuerySize.ts
rename to src/ constants/information/mediaQuerySize.ts
diff --git a/src/ constants/infomations/snsLinks.ts b/src/ constants/information/snsLinks.ts
similarity index 100%
rename from src/ constants/infomations/snsLinks.ts
rename to src/ constants/information/snsLinks.ts
diff --git a/src/components/@shared/Footer.tsx b/src/components/@shared/Footer.tsx
index d4fef40f2..bee5395c9 100644
--- a/src/components/@shared/Footer.tsx
+++ b/src/components/@shared/Footer.tsx
@@ -1,7 +1,7 @@
-import { SNS_LINKS } from ' constants/infomations/snsLinks';
+import { SNS_LINKS } from ' constants/information/snsLinks';
import styled from 'styled-components';
import Image from './Image';
-import { MOBILE_MAX_WIDTH } from ' constants/infomations/mediaQuerySize';
+import { MOBILE_MAX_WIDTH } from ' constants/information/mediaQuerySize';
function Footer() {
return (
diff --git a/src/components/@shared/Header.tsx b/src/components/@shared/Header.tsx
index 755f9223e..d121ccbd0 100644
--- a/src/components/@shared/Header.tsx
+++ b/src/components/@shared/Header.tsx
@@ -3,7 +3,7 @@ import styled from 'styled-components';
import Button from './Button';
import { PATH_LOGIN } from ' constants/paths/paths';
import HeaderLinkSection from './HeaderLinkSection';
-import { MOBILE_MAX_WIDTH, TABLET_MAX_WIDTH } from ' constants/infomations/mediaQuerySize';
+import { MOBILE_MAX_WIDTH, TABLET_MAX_WIDTH } from ' constants/information/mediaQuerySize';
function Header() {
const { navigateTo } = useNavigateTo();
@@ -24,7 +24,7 @@ export default Header;
const StyledHeaderWrapper = styled.header`
/* 매 페이지마다 fixed에 의해 숨겨진 영역 떄문에 패딩값을 주지 않도록 */
- height: var(--header-heigt);
+ height: var(--header-height);
`;
const StyledHeader = styled.header`
@@ -38,7 +38,7 @@ const StyledHeader = styled.header`
align-items: center;
width: 100%;
- height: var(--header-heigt);
+ height: var(--header-height);
padding: var(--padding-001);
background-color: var(--white);
diff --git a/src/components/@shared/HeaderLinkSection.tsx b/src/components/@shared/HeaderLinkSection.tsx
index 22ec6b203..5e239d699 100644
--- a/src/components/@shared/HeaderLinkSection.tsx
+++ b/src/components/@shared/HeaderLinkSection.tsx
@@ -6,7 +6,7 @@ import { PATH_HOME, PATH_BOARDS, PATH_ITEMS, PATH_ADD_ITEM } from ' constants/pa
import styled from 'styled-components';
import useNavigateTo from 'hooks/useNavigateTo';
import useWindowSize from 'hooks/useWindowSize';
-import { MOBILE_MAX_WIDTH } from ' constants/infomations/mediaQuerySize';
+import { MOBILE_MAX_WIDTH } from ' constants/information/mediaQuerySize';
function HeaderLinkSection() {
const { innerWidth } = useWindowSize();
diff --git a/src/components/@shared/Pagination.tsx b/src/components/@shared/Pagination.tsx
index f7e31c5d1..7c3c17bd8 100644
--- a/src/components/@shared/Pagination.tsx
+++ b/src/components/@shared/Pagination.tsx
@@ -48,7 +48,7 @@ function Pagination({ currentPage, totalCount, setSearchParams }: PaginationProp
};
return (
-
+
{'<'}
@@ -60,13 +60,13 @@ function Pagination({ currentPage, totalCount, setSearchParams }: PaginationProp
{'>'}
-
+
);
}
export default Pagination;
-const StyledPagenationSection = styled.section`
+const StyledPaginationSection = styled.section`
width: 100%;
display: flex;
justify-content: center;
diff --git a/src/components/addItem/ImageRegistration.tsx b/src/components/addItem/ImageRegistration.tsx
index 5c00f88bd..d04b0efb4 100644
--- a/src/components/addItem/ImageRegistration.tsx
+++ b/src/components/addItem/ImageRegistration.tsx
@@ -1,13 +1,13 @@
import styled from 'styled-components';
import { inputStyle, placeholderStyle } from 'styles/auth/formStyles';
import plusIcon from 'assets/images/addProduct/plus-icon.png';
-import { ALLOW_FILE_EXTENSION } from ' constants/infomations/fileExtension';
+import { ALLOW_FILE_EXTENSION } from ' constants/information/fileExtension';
import { StyledAddItemSubTitle } from 'styles/addProduct/textStyles';
import React from 'react';
import Image from 'components/@shared/Image';
import PreviewList from './PreviewList';
import { IPreview } from 'types/@shared/addProductTypes';
-import { MOBILE_MAX_WIDTH, TABLET_MAX_WIDTH } from ' constants/infomations/mediaQuerySize';
+import { MOBILE_MAX_WIDTH, TABLET_MAX_WIDTH } from ' constants/information/mediaQuerySize';
interface ImageRegistrationProps {
previewList: IPreview[];
@@ -19,7 +19,7 @@ function ImageRegistration({ previewList, handleInputChange, handleRemoveClick }
return (
);
}
export default ImageRegistration;
-const StyledItemRegistSection = styled.section`
+const StyledItemRegistrationSection = styled.section`
display: flex;
gap: 2.4rem;
overflow-x: auto; // 사진이 많아지면 좌우 스크롤이 되도록 지정
diff --git a/src/components/addItem/InputSection.tsx b/src/components/addItem/InputSection.tsx
index cdf593e83..32dbe66e8 100644
--- a/src/components/addItem/InputSection.tsx
+++ b/src/components/addItem/InputSection.tsx
@@ -1,4 +1,4 @@
-import { ADDITEM_FEIELDSET_LIST } from ' constants/infomations/addItemList';
+import { ADDITEM_FIELDSET_LIST } from ' constants/information/addItemList';
import React from 'react';
import { Fragment } from 'react/jsx-runtime';
import styled from 'styled-components';
@@ -24,7 +24,7 @@ function InputSection({
}: InputSectionProps) {
return (
- {ADDITEM_FEIELDSET_LIST.map(fieldset => (
+ {ADDITEM_FIELDSET_LIST.map(fieldset => (