File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/pages/Home/components Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11import DeleteOutlineRoundedIcon from '@mui/icons-material/DeleteOutlineRounded' ;
22import React , { useEffect , useState } from 'react' ;
3+ // import { useNavigate } from 'react-router';
34
45import { DraftLetter , getDraftLetters } from '@/apis/draftLetters' ;
56import ModalBackgroundWrapper from '@/components/ModalBackgroundWrapper' ;
@@ -13,6 +14,14 @@ interface ShowDraftModalProps {
1314const ShowDraftModal = ( { onClose } : ShowDraftModalProps ) => {
1415 const [ draftLetters , setDraftLetters ] = useState < DraftLetter [ ] > ( [ ] ) ;
1516
17+ // const navigate = useNavigate();
18+
19+ // const handleNavigation = (incomingId: number) => {
20+ // navigate(`/board/letter/${incomingId}`, {
21+ // state: { isShareLetterPreview: false },
22+ // });
23+ // };
24+
1625 useEffect ( ( ) => {
1726 getDraftLetters ( )
1827 . then ( ( data ) => {
@@ -40,6 +49,7 @@ const ShowDraftModal = ({ onClose }: ShowDraftModalProps) => {
4049 < div
4150 className = "text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
4251 key = { draft . letterId }
52+ // onClick={() => handleNavigation(draft.letterId)}
4353 >
4454 < p className = "truncate" > { draft . title } </ p >
4555 < div className = "text-gray-20" >
You can’t perform that action at this time.
0 commit comments