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

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
Jaiwanth 2021-06-29 10:13:38 +05:30 committed by GitHub
parent f0d0b77b8c
commit 4ddbe76fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ const ExportDialog: React.FC<IProps> = ({ room, onFinished }) => {
const [isExporting, setExporting] = useState(false);
const [numberOfMessages, setNumberOfMessages] = useState<number>(100);
const [sizeLimit, setSizeLimit] = useState<number | null>(8);
const [sizeLimitRef, messageCountRef] = [useRef<any>(), useRef<any>()];
const sizeLimitRef = useRef<Field>();
const messageCountRef = useRef<Field>();
const [displayCancel, setCancelWarning] = useState(false);
const [exportCancelled, setExportCancelled] = useState(false);
const [exportSuccessful, setExportSuccessful] = useState(false);