Skip to content

Commit 5d2e9dc

Browse files
committed
deploy : 코드 정리
1 parent 8e38f31 commit 5d2e9dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/LetterBoardDetail/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ReportModal from '@/components/ReportModal';
1111

1212
import Header from './components/Header';
1313
import Letter from './components/Letter';
14-
import { useLocation, useParams } from 'react-router';
14+
import { useParams } from 'react-router';
1515
import useAuthStore from '@/stores/authStore';
1616

1717
const LetterBoardDetailPage = () => {
@@ -20,8 +20,8 @@ const LetterBoardDetailPage = () => {
2020
const [isWriter, setIsWriter] = useState(false);
2121
const [postDetail, setPostDetail] = useState<SharePost>();
2222
const [activeReportModal, setActiveReportModal] = useState(false);
23-
const location = useLocation();
24-
const sharePostId: string = location.pathname.split('/')[3];
23+
// const location = useLocation();
24+
// const sharePostId: string = location.pathname.split('/')[3];
2525
// const isShareLetterPreview = location.state?.isShareLetterPreview || false;
2626

2727
const { id } = useParams();

0 commit comments

Comments
 (0)