Skip to content

Commit

Permalink
fix: 🐛 optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpetrov committed Apr 16, 2024
1 parent 2749177 commit d913df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useFileUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Props = {
changeCallback?: (files: File[]) => any;
};

function useFileUpload(props: Props) {
function useFileUpload(props: Props = {}) {
const [isUploading, setIsUploading] = React.useState(false);
const [isDragOver, setDragOver] = useState(false);
const [files, setFiles] = useState<File[]>([] as File[]);
Expand Down

0 comments on commit d913df7

Please sign in to comment.