Skip to content

Commit

Permalink
chore: lint error solve
Browse files Browse the repository at this point in the history
  • Loading branch information
namdaeun committed Jan 26, 2025
1 parent a6a7507 commit 7265c78
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 3 additions & 1 deletion apps/client/src/page/handoverNote/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ const NotePage = () => {
setData={setNoteDetailData as React.Dispatch<React.SetStateAction<CustomNoteData>>}
/>
</TabPanel>
) : null)}
) : (
<></>
))}
</TabRoot>
</section>
);
Expand Down
10 changes: 5 additions & 5 deletions apps/client/src/shared/component/Modal/ModalFunnel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { BlockProvider } from '@/shared/hook/common/useBlockContext';
import { FunnelProvider } from '@/shared/hook/common/useFunnel';
import { WorkSpaceProvider } from '@/shared/hook/common/useWorkSpaceContext';
import {
isCautionModalData,
useCloseModal,
useModalContentType,
useModalData,
useModalIsOpen,
isCautionModalData,
useCloseModal,
useModalContentType,
useModalData,
useModalIsOpen,
} from '@/shared/store/modal';
import { FunnelStep } from '@/shared/util/funnelStep';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* eslint-disable react-hooks/exhaustive-deps */
import { IcFileUpload } from '@tiki/icon';
import { Button, Flex, Text, scrollStyle, useToastAction } from '@tiki/ui';

import { useEffect, useState } from 'react';

import { $api } from '@/shared/api/client';
import { Files } from '@/shared/api/time-blocks/team/time-block/type';
import { DocumentDetail } from '@/shared/component/TimeBlockModal';
import { boxStyle } from '@/shared/component/TimeBlockModal/component/UploadModal/File/AppendFile/AppendFile.style';
import useFile from '@/shared/component/TimeBlockModal/hook/common/useFile';
import UploadedFileItem from '@/shared/component/UploadedFileItem/UploadedFileItem';


import { Files } from '@/shared/api/time-blocks/team/time-block/type';
import { useInitializeTeamId } from '@/shared/hook/common/useInitializeTeamId';
import { convertToKB, getFileVolume } from '@/shared/util/file';

Expand Down Expand Up @@ -50,7 +50,6 @@ const AppendFile = ({ selectedFiles, onUploadFile }: AppendFileProps) => {
setUploadStatus,
});


const handleUploadFile = (validFiles: FileWithDocumentId[]) => {
const documentDetailList: DocumentDetail[] = [];

Expand Down Expand Up @@ -141,8 +140,7 @@ const AppendFile = ({ selectedFiles, onUploadFile }: AppendFileProps) => {
}}
css={boxStyle}
onDragOver={handleDragOver}
onDrop={(event) => handleDrop(event)}
>
onDrop={(event) => handleDrop(event)}>
<Flex tag="form" styles={{ direction: 'column', align: 'center', justify: 'center' }}>
<input type="file" multiple style={{ display: 'none' }} ref={fileInputRef} onChange={handleFileChange} />
<IcFileUpload width={32} height={32} css={{ marginBottom: '1.2rem' }} />
Expand Down Expand Up @@ -177,4 +175,4 @@ const AppendFile = ({ selectedFiles, onUploadFile }: AppendFileProps) => {
);
};

export default AppendFile;
export default AppendFile;
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const useFile = ({ files, onFilesChange, setUploadStatus, setFileUrls }: useFile
fileInputRef.current.value = '';
}
},
[files, onFilesChange, uploadToS3, setUploadStatus]
[files, onFilesChange, uploadToS3, setUploadStatus, setFileUrls]
);

const handleFileChange = useCallback(
Expand Down

0 comments on commit 7265c78

Please sign in to comment.