From adb844b05f48f17e5e6ba7a1e69b76988b2bb3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=90=E1=85=A2=E1=84=92=E1=85=AE?= =?UTF-8?q?=E1=86=AB?= Date: Mon, 21 Oct 2024 22:19:49 +0900 Subject: [PATCH] =?UTF-8?q?style:=20lint=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/useMainSectionBackgroundScroll.ts | 1 + client/src/pages/MainPage/MainPage.tsx | 2 +- client/src/pages/MainPage/Section/CreatorSection/Avatar.tsx | 3 ++- .../pages/MainPage/Section/CreatorSection/CreatorSection.tsx | 3 ++- .../pages/MainPage/Section/FeatureSection/FeatureSection.tsx | 5 +++-- .../src/pages/MainPage/Section/MainSection/MainSection.tsx | 3 ++- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/client/src/hooks/useMainSectionBackgroundScroll.ts b/client/src/hooks/useMainSectionBackgroundScroll.ts index d3394542..42ead493 100644 --- a/client/src/hooks/useMainSectionBackgroundScroll.ts +++ b/client/src/hooks/useMainSectionBackgroundScroll.ts @@ -1,5 +1,6 @@ import {useEffect, useState} from 'react'; import {useNavigate} from 'react-router-dom'; + import {ROUTER_URLS} from '@constants/routerUrls'; const useMainSectionBackgroundScroll = (trackStartCreateEvent: () => void) => { diff --git a/client/src/pages/MainPage/MainPage.tsx b/client/src/pages/MainPage/MainPage.tsx index 68caef58..d2e56112 100644 --- a/client/src/pages/MainPage/MainPage.tsx +++ b/client/src/pages/MainPage/MainPage.tsx @@ -1,4 +1,5 @@ import useAmplitude from '@hooks/useAmplitude'; +import useMainPageYScroll from '@hooks/useMainPageYScroll'; import Nav from './Nav/Nav'; import {MainSection} from './Section/MainSection'; @@ -6,7 +7,6 @@ import {DescriptionSection} from './Section/DescriptionSection'; import {FeatureSection} from './Section/FeatureSection'; import {mainContainer} from './MainPage.style'; import CreatorSection from './Section/CreatorSection/CreatorSection'; -import useMainPageYScroll from '@hooks/useMainPageYScroll'; const MainPage = () => { const {trackStartCreateEvent} = useAmplitude(); diff --git a/client/src/pages/MainPage/Section/CreatorSection/Avatar.tsx b/client/src/pages/MainPage/Section/CreatorSection/Avatar.tsx index 82f6e121..89d4c985 100644 --- a/client/src/pages/MainPage/Section/CreatorSection/Avatar.tsx +++ b/client/src/pages/MainPage/Section/CreatorSection/Avatar.tsx @@ -1,6 +1,7 @@ -import {Text} from '@components/Design'; import {css} from '@emotion/react'; +import {Text} from '@components/Design'; + interface Props { imagePath: string; name: string; diff --git a/client/src/pages/MainPage/Section/CreatorSection/CreatorSection.tsx b/client/src/pages/MainPage/Section/CreatorSection/CreatorSection.tsx index 74c94d14..77b7d4c7 100644 --- a/client/src/pages/MainPage/Section/CreatorSection/CreatorSection.tsx +++ b/client/src/pages/MainPage/Section/CreatorSection/CreatorSection.tsx @@ -1,8 +1,9 @@ import {css} from '@emotion/react'; +import {useNavigate} from 'react-router-dom'; import Text from '@components/Design/components/Text/Text'; + import Avatar from './Avatar'; -import {useNavigate} from 'react-router-dom'; import {avatarContainerStyle, partStyle, sectionStyle} from './CreatorSection.style'; const CreatorSection = () => { diff --git a/client/src/pages/MainPage/Section/FeatureSection/FeatureSection.tsx b/client/src/pages/MainPage/Section/FeatureSection/FeatureSection.tsx index 1de497f3..0b35f25c 100644 --- a/client/src/pages/MainPage/Section/FeatureSection/FeatureSection.tsx +++ b/client/src/pages/MainPage/Section/FeatureSection/FeatureSection.tsx @@ -1,10 +1,11 @@ +import {css} from '@emotion/react'; +import {forwardRef, ForwardedRef} from 'react'; + import {SimpleShare} from './SimpleShare'; import {AutoCalculate} from './AutoCalculate'; import {CheckDeposit} from './CheckDeposit'; import {SimpleTransfer} from './SimpleTransfer'; import {RecordMemoryWithPhoto} from './RecordMemoryWithPhoto'; -import {css} from '@emotion/react'; -import {forwardRef, ForwardedRef} from 'react'; const FeatureSection = forwardRef((props, ref: ForwardedRef) => { return ( diff --git a/client/src/pages/MainPage/Section/MainSection/MainSection.tsx b/client/src/pages/MainPage/Section/MainSection/MainSection.tsx index d4c9bf21..8b2491e6 100644 --- a/client/src/pages/MainPage/Section/MainSection/MainSection.tsx +++ b/client/src/pages/MainPage/Section/MainSection/MainSection.tsx @@ -1,6 +1,8 @@ import Button from '@HDesign/components/Button/Button'; import Text from '@HDesign/components/Text/Text'; +import useMainSectionBackgroundScroll from '@hooks/useMainSectionBackgroundScroll'; + import {Icon} from '@components/Design'; import { @@ -11,7 +13,6 @@ import { mainSectionStyle, sectionStyle, } from './MainSection.style'; -import useMainSectionBackgroundScroll from '@hooks/useMainSectionBackgroundScroll'; type MainSectionProps = { trackStartCreateEvent: () => void;