Update src/components/views/dialogs/ExportDialog.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user