Update ImportExportModal.js
This commit is contained in:
parent
9370365ab4
commit
9b0bf9c005
@ -7,14 +7,11 @@ import Modal from "../components/Modal";
|
|||||||
import LoadingOverlay from "../components/LoadingOverlay";
|
import LoadingOverlay from "../components/LoadingOverlay";
|
||||||
import LoadingBar from "../components/LoadingBar";
|
import LoadingBar from "../components/LoadingBar";
|
||||||
|
|
||||||
import { useDatabase } from "../contexts/DatabaseContext";
|
|
||||||
|
|
||||||
import DatabaseWorker from "worker-loader!../workers/DatabaseWorker"; // eslint-disable-line import/no-webpack-loader-syntax
|
import DatabaseWorker from "worker-loader!../workers/DatabaseWorker"; // eslint-disable-line import/no-webpack-loader-syntax
|
||||||
|
|
||||||
const worker = Comlink.wrap(new DatabaseWorker());
|
const worker = Comlink.wrap(new DatabaseWorker());
|
||||||
|
|
||||||
function ImportDatabaseModal({ isOpen, onRequestClose }) {
|
function ImportDatabaseModal({ isOpen, onRequestClose }) {
|
||||||
const { database } = useDatabase();
|
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
|
|
||||||
const backgroundTaskRunningRef = useRef(false);
|
const backgroundTaskRunningRef = useRef(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user