Wrapping most API requests in trys/catches.

This commit is contained in:
Roland 2022-05-01 21:03:30 -06:00
parent 8ab61bd8a8
commit 6a654cd3af
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
10 changed files with 355 additions and 123 deletions

View file

@ -14,12 +14,13 @@ import {ArchiveRoute, ArchivesList} from "./components/Archive";
import {Saver} from "./components/Upload";
import {MoreButton, PageContainer, SearchInput} from "./components/Common";
import {FilesRoute} from "./components/Files";
import {useSearch, useVersion} from "./hooks/customHooks";
import {useSearch, useUp, useVersion} from "./hooks/customHooks";
import {MapRoute} from "./components/Map";
function Welcome() {
const {searchStr, setSearchStr, archives, videos} = useSearch();
const history = useHistory();
useUp();
let body = (
<>