Split html into multiple files to improve scroll performance

This commit is contained in:
Jaiwanth
2021-08-20 15:01:48 +05:30
parent fea9f4a4df
commit 98b0642b65
2 changed files with 12 additions and 4 deletions

View File

@@ -260,6 +260,9 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
title: _t("Export Cancelled"),
description: <p>{ _t("The export was cancelled successfully") }</p>,
hasCloseButton: true,
onFinished: () => {
setExportCancelled(false);
},
});
return null;
} else if (exportSuccessful) {
@@ -268,6 +271,9 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
title: _t("Export Successful"),
description: <p>{ _t("Your messages were successfully exported") }</p>,
hasCloseButton: true,
onFinished: () => {
setExportSuccessful(false);
},
});
return null;
} else if (displayCancel) {