Updated prettier version to 2.8.0

This commit is contained in:
Alvaro 2023-02-23 11:38:09 -07:00 committed by GitHub
parent d1527d0bc0
commit a316c5d9d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 89 additions and 84 deletions

View file

@ -635,29 +635,31 @@ export function CompositionArea({
return (
<div className="CompositionArea">
{attachmentToEdit && 'url' in attachmentToEdit && attachmentToEdit.url && (
<MediaEditor
i18n={i18n}
imageSrc={attachmentToEdit.url}
imageToBlurHash={imageToBlurHash}
isSending={false}
onClose={() => setAttachmentToEdit(undefined)}
onDone={({ data, contentType, blurHash }) => {
const newAttachment = {
...attachmentToEdit,
contentType,
blurHash,
data,
size: data.byteLength,
};
{attachmentToEdit &&
'url' in attachmentToEdit &&
attachmentToEdit.url && (
<MediaEditor
i18n={i18n}
imageSrc={attachmentToEdit.url}
imageToBlurHash={imageToBlurHash}
isSending={false}
onClose={() => setAttachmentToEdit(undefined)}
onDone={({ data, contentType, blurHash }) => {
const newAttachment = {
...attachmentToEdit,
contentType,
blurHash,
data,
size: data.byteLength,
};
addAttachment(conversationId, newAttachment);
setAttachmentToEdit(undefined);
}}
installedPacks={installedPacks}
recentStickers={recentStickers}
/>
)}
addAttachment(conversationId, newAttachment);
setAttachmentToEdit(undefined);
}}
installedPacks={installedPacks}
recentStickers={recentStickers}
/>
)}
<div className="CompositionArea__toggle-large">
<button
type="button"