From c137655c0ce625eeb6767371971bcfa7a840aea1 Mon Sep 17 00:00:00 2001 From: suwonthugger <127329855+suwonthugger@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:49:37 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20=EC=98=A8=EB=B3=B4=EB=94=A9=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=ED=8F=B4=EB=8D=94=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=20=EB=B3=80=EA=B2=BD=20(#234)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 온보딩 페이지 컴포넌트 폴더 삭제 및 컴포넌트명으로 폴더 생성하여 적용 (#230) * refactor: 상아 피드백 반영해서 컴포넌트 depth 1로 고정 (#230) --- src/pages/OnboardingPage/OnboardingPage.tsx | 4 +++- .../{components/Step => }/StepField/StepField.tsx | 0 .../BoxAllowedService/BoxAllowedService.tsx | 0 .../ButtonService/ButtonService.tsx | 0 .../{components/Step => }/StepService/StepService.tsx | 4 +++- .../Step/StepService/components => StepService}/Tabs/Tabs.tsx | 0 .../{components/Step => }/StepStart/StepStart.tsx | 0 .../components/Step/StepService/components/index.ts | 3 --- src/pages/OnboardingPage/components/index.ts | 3 --- 9 files changed, 6 insertions(+), 8 deletions(-) rename src/pages/OnboardingPage/{components/Step => }/StepField/StepField.tsx (100%) rename src/pages/OnboardingPage/{components/Step/StepService/components => StepService}/BoxAllowedService/BoxAllowedService.tsx (100%) rename src/pages/OnboardingPage/{components/Step/StepService/components => StepService}/ButtonService/ButtonService.tsx (100%) rename src/pages/OnboardingPage/{components/Step => }/StepService/StepService.tsx (95%) rename src/pages/OnboardingPage/{components/Step/StepService/components => StepService}/Tabs/Tabs.tsx (100%) rename src/pages/OnboardingPage/{components/Step => }/StepStart/StepStart.tsx (100%) delete mode 100644 src/pages/OnboardingPage/components/Step/StepService/components/index.ts delete mode 100644 src/pages/OnboardingPage/components/index.ts diff --git a/src/pages/OnboardingPage/OnboardingPage.tsx b/src/pages/OnboardingPage/OnboardingPage.tsx index fc8aa096..de7e69c3 100644 --- a/src/pages/OnboardingPage/OnboardingPage.tsx +++ b/src/pages/OnboardingPage/OnboardingPage.tsx @@ -1,6 +1,8 @@ import { useState } from 'react'; -import { StepField, StepService, StepStart } from './components'; +import StepField from './StepField/StepField'; +import StepService from './StepService/StepService'; +import StepStart from './StepStart/StepStart'; import { FIELDS } from './constants'; import { useFunnel } from './hooks/useFunnel'; diff --git a/src/pages/OnboardingPage/components/Step/StepField/StepField.tsx b/src/pages/OnboardingPage/StepField/StepField.tsx similarity index 100% rename from src/pages/OnboardingPage/components/Step/StepField/StepField.tsx rename to src/pages/OnboardingPage/StepField/StepField.tsx diff --git a/src/pages/OnboardingPage/components/Step/StepService/components/BoxAllowedService/BoxAllowedService.tsx b/src/pages/OnboardingPage/StepService/BoxAllowedService/BoxAllowedService.tsx similarity index 100% rename from src/pages/OnboardingPage/components/Step/StepService/components/BoxAllowedService/BoxAllowedService.tsx rename to src/pages/OnboardingPage/StepService/BoxAllowedService/BoxAllowedService.tsx diff --git a/src/pages/OnboardingPage/components/Step/StepService/components/ButtonService/ButtonService.tsx b/src/pages/OnboardingPage/StepService/ButtonService/ButtonService.tsx similarity index 100% rename from src/pages/OnboardingPage/components/Step/StepService/components/ButtonService/ButtonService.tsx rename to src/pages/OnboardingPage/StepService/ButtonService/ButtonService.tsx diff --git a/src/pages/OnboardingPage/components/Step/StepService/StepService.tsx b/src/pages/OnboardingPage/StepService/StepService.tsx similarity index 95% rename from src/pages/OnboardingPage/components/Step/StepService/StepService.tsx rename to src/pages/OnboardingPage/StepService/StepService.tsx index 0c611537..8c36697c 100644 --- a/src/pages/OnboardingPage/components/Step/StepService/StepService.tsx +++ b/src/pages/OnboardingPage/StepService/StepService.tsx @@ -2,7 +2,9 @@ import { ChangeEvent, KeyboardEvent, useState } from 'react'; import { BackIcon } from '@/shared/assets/home/svgs'; -import { BoxAllowedService, ButtonService, Tabs } from './components'; +import BoxAllowedService from './BoxAllowedService/BoxAllowedService'; +import ButtonService from './ButtonService/ButtonService'; +import Tabs from './Tabs/Tabs'; interface StepServiceProps { setStep: (step: string) => void; diff --git a/src/pages/OnboardingPage/components/Step/StepService/components/Tabs/Tabs.tsx b/src/pages/OnboardingPage/StepService/Tabs/Tabs.tsx similarity index 100% rename from src/pages/OnboardingPage/components/Step/StepService/components/Tabs/Tabs.tsx rename to src/pages/OnboardingPage/StepService/Tabs/Tabs.tsx diff --git a/src/pages/OnboardingPage/components/Step/StepStart/StepStart.tsx b/src/pages/OnboardingPage/StepStart/StepStart.tsx similarity index 100% rename from src/pages/OnboardingPage/components/Step/StepStart/StepStart.tsx rename to src/pages/OnboardingPage/StepStart/StepStart.tsx diff --git a/src/pages/OnboardingPage/components/Step/StepService/components/index.ts b/src/pages/OnboardingPage/components/Step/StepService/components/index.ts deleted file mode 100644 index b60b257c..00000000 --- a/src/pages/OnboardingPage/components/Step/StepService/components/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as BoxAllowedService } from './BoxAllowedService/BoxAllowedService'; -export { default as ButtonService } from './ButtonService/ButtonService'; -export { default as Tabs } from './Tabs/Tabs'; diff --git a/src/pages/OnboardingPage/components/index.ts b/src/pages/OnboardingPage/components/index.ts deleted file mode 100644 index 27d24eb0..00000000 --- a/src/pages/OnboardingPage/components/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { default as StepStart } from './Step/StepStart/StepStart.tsx'; -export { default as StepField } from './Step/StepField/StepField.tsx'; -export { default as StepService } from './Step/StepService/StepService.tsx';