Updated prettier version to 2.8.0
This commit is contained in:
parent
d1527d0bc0
commit
a316c5d9d7
6 changed files with 89 additions and 84 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue