diff --git a/src/views/RecruitPage/RecruitPage.tsx b/src/views/RecruitPage/RecruitPage.tsx index b156c164..a93d852e 100644 --- a/src/views/RecruitPage/RecruitPage.tsx +++ b/src/views/RecruitPage/RecruitPage.tsx @@ -1,14 +1,16 @@ import styled from '@emotion/styled'; +import { lazy } from 'react'; import PageLayout from '@src/components/common/PageLayout'; -import { ActivityReview } from './components/ActivityReview/ActivityReview'; -import BottomLogo from './components/BottomLogo'; import ChapterInfo from './components/ChapterInfo'; -import Contact from './components/Contact'; -import FaqInfo from './components/FAQ'; import NotificationSection from './components/NotificationSection'; import RecruiteeInfo from './components/RecruteeInfo'; import Schedule from './components/Schedule'; +const FaqInfo = lazy(() => import('./components/FAQ')); +const Contact = lazy(() => import('./components/Contact')); +const ActivityReview = lazy(() => import('./components/ActivityReview')); +const BottomLogo = lazy(() => import('./components/BottomLogo')); + function Recruit() { return ( diff --git a/src/views/RecruitPage/components/ActivityReview/ActivityReview.tsx b/src/views/RecruitPage/components/ActivityReview/index.tsx similarity index 98% rename from src/views/RecruitPage/components/ActivityReview/ActivityReview.tsx rename to src/views/RecruitPage/components/ActivityReview/index.tsx index d7b76bfc..3b7d5d3e 100644 --- a/src/views/RecruitPage/components/ActivityReview/ActivityReview.tsx +++ b/src/views/RecruitPage/components/ActivityReview/index.tsx @@ -1,8 +1,8 @@ -import Link from 'next/link'; import { ReactComponent as ArrowLeft } from '@src/assets/icons/arrow_left_28x28.svg'; import { ReactComponent as ArrowRight } from '@src/assets/icons/arrow_right_28x28.svg'; import arrowRightWhite from '@src/assets/icons/arrow_right_white.svg'; import { useHorizontalScroll } from '@src/hooks/useHorizontalScroll'; +import Link from 'next/link'; import { SectionTitle, SectionTitleTranslate, SectionTitleWrapper } from '../common/styles'; import useFetch from './hooks/useFetch'; import { @@ -20,7 +20,7 @@ import { } from './styles'; import { parsePartToKorean } from './utils/parsePartToKorean'; -export function ActivityReview() { +export default function ActivityReview() { const reviews = useFetch(); const { scrollableRef,