Created
April 4, 2020 19:30
-
-
Save jimjeffers/83bae78229a821300ba634b073512f24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [localPreviews, setLocalPreviews] = useState({} as INormalizedPreviews) | |
const handleCompletedUploaded: HandleFileUploadFn = async preview => { | |
const normalizedPreviews = mergePreviewsToState([{ ...preview, status: FileUploadStatus.Available }], localPreviews) | |
setLocalPreviews(normalizedPreviews) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment