Skip to content

Commit f1cd03a

Browse files
committed
feat: 상세 페이지 import 문 정리
1 parent a247cb7 commit f1cd03a

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/pages/DetailRecord/DetailRecord.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import BackButton from '@components/BackButton'
22
import Button from '@components/Button'
33
import Chip from '@components/Chip'
4-
import React, { Suspense, useState } from 'react'
5-
import { useEffect } from 'react'
4+
import React, { Suspense, lazy, useState, useEffect } from 'react'
65
import { useLocation, useNavigate, useParams } from 'react-router-dom'
76
import { IRecordDataType } from 'types/recordData'
87
import {
@@ -30,12 +29,12 @@ import {
3029
import { SessionStorage } from '@utils/sessionStorage'
3130
import { PREVIOUS_URL } from '@assets/constant/others'
3231

33-
const MoreButton = React.lazy(() => import('@components/MoreButton'))
34-
const NotFound = React.lazy(() => import('@pages/NotFound/NotFound'))
35-
const Alert = React.lazy(() => import('@components/Alert'))
36-
const Modal = React.lazy(() => import('@components/Modal'))
37-
const MemoizedShareModal = React.lazy(() => import('./ShareModal'))
38-
const EditModal = React.lazy(() => import('./EditModal'))
32+
const MoreButton = lazy(() => import('@components/MoreButton'))
33+
const NotFound = lazy(() => import('@pages/NotFound/NotFound'))
34+
const Alert = lazy(() => import('@components/Alert'))
35+
const Modal = lazy(() => import('@components/Modal'))
36+
const MemoizedShareModal = lazy(() => import('./ShareModal'))
37+
const EditModal = lazy(() => import('./EditModal'))
3938

4039
export default function DetailRecord() {
4140
const [shareStatus, setShareStatus] = useState(false)

0 commit comments

Comments
 (0)