mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
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 [displayCancel, setCancelWarning] = useState(false);
|
||||||
const [exportCancelled, setExportCancelled] = useState(false);
|
const [exportCancelled, setExportCancelled] = useState(false);
|
||||||
const [exportSuccessful, setExportSuccessful] = useState(false);
|
const [exportSuccessful, setExportSuccessful] = useState(false);
|
||||||
const [Exporter, setExporter] = useStateCallback(
|
const [Exporter, setExporter] = useStateCallback<Exporter>(
|
||||||
null,
|
null,
|
||||||
async (Exporter: HTMLExporter | PlainTextExporter | JSONExporter) => {
|
async (Exporter: HTMLExporter | PlainTextExporter | JSONExporter) => {
|
||||||
await Exporter?.export().then(() => {
|
await Exporter?.export().then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user