Use parallel-prettier for lint

This commit is contained in:
Fedor Indutny 2022-03-22 13:45:34 -07:00 committed by GitHub
parent 67702254fb
commit 356f123092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 817 additions and 562 deletions

View file

@ -52,20 +52,21 @@ export const CompositionUpload = forwardRef<HTMLInputElement, PropsType>(
AttachmentToastType | undefined
>();
const onFileInputChange: ChangeEventHandler<HTMLInputElement> =
async event => {
const files = event.target.files || [];
const onFileInputChange: ChangeEventHandler<
HTMLInputElement
> = async event => {
const files = event.target.files || [];
await processAttachments({
addAttachment,
addPendingAttachment,
conversationId,
files: Array.from(files),
draftAttachments,
onShowToast: setToastType,
removeAttachment,
});
};
await processAttachments({
addAttachment,
addPendingAttachment,
conversationId,
files: Array.from(files),
draftAttachments,
onShowToast: setToastType,
removeAttachment,
});
};
function closeToast() {
setToastType(undefined);