Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-byb committed Feb 27, 2024
1 parent 726a962 commit 44ea34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DocumentUploadCard/RightContent/Upload.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// External Imports
// React
import { useCallback } from 'react';
import { useCallback, useMemo } from 'react';
import type React from 'react';

// Relative Imports
Expand All @@ -27,7 +27,7 @@ const UploadNoMemo: React.FC<UploadProps> = ({ onSelect, accept = '.pdf' }) => {
[accept]
);

const onClick = onUpload.bind(null, onSelect);
const onClick = useMemo(() => onUpload.bind(null, onSelect), [onSelect, onUpload]);

return (
<Flex direction="row">
Expand Down

0 comments on commit 44ea34f

Please sign in to comment.