File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/pages/LetterBoardDetail Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import ReportModal from '@/components/ReportModal';
1111
1212import Header from './components/Header' ;
1313import Letter from './components/Letter' ;
14- import { useLocation , useParams } from 'react-router' ;
14+ import { useParams } from 'react-router' ;
1515import useAuthStore from '@/stores/authStore' ;
1616
1717const 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 ( ) ;
You can’t perform that action at this time.
0 commit comments