mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
Wrapping most API requests in trys/catches.
This commit is contained in:
parent
8ab61bd8a8
commit
6a654cd3af
10 changed files with 355 additions and 123 deletions
|
|
@ -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 = (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue