Update src/components/views/dialogs/ExportDialog.tsx

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Jaiwanth 2021-06-29 10:14:24 +05:30 committed by GitHub
parent efccf19e9e
commit 7b683a1f64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
const [displayCancel, setCancelWarning] = useState(false);
const [exportCancelled, setExportCancelled] = useState(false);
const [exportSuccessful, setExportSuccessful] = useState(false);
const [Exporter, setExporter] = useStateCallback(
const [Exporter, setExporter] = useStateCallback<Exporter>(
null,
async (Exporter: HTMLExporter | PlainTextExporter | JSONExporter) => {
await Exporter?.export().then(() => {