diff options
Diffstat (limited to 'src/components/App')
| -rw-r--r-- | src/components/App/App.tsx | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx index 1d231ae..aaad5d0 100644 --- a/src/components/App/App.tsx +++ b/src/components/App/App.tsx | |||
| @@ -1,27 +1,18 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | import { ReactElement, useContext, useEffect, useMemo, useState } from "react"; | 2 | import { ReactElement, useContext, useEffect, useMemo, useState } from "react"; |
| 3 | import useRequests, { | 3 | import useRequests, { ReadyState, RequestResponse } from "~/hooks/useRequests"; |
| 4 | ReadyState, | ||
| 5 | RequestResponse, | ||
| 6 | } from "../../hooks/useRequests"; | ||
| 7 | 4 | ||
| 8 | import styles from "./App.module.scss"; | 5 | import styles from "~/components/App.module.scss"; |
| 9 | import RequestDetails from "../RequestDetails/RequestDetails"; | 6 | import RequestDetails from "~/components/RequestDetails/RequestDetails"; |
| 10 | import { getHost } from "../../utils"; | 7 | import { getHost } from "~/utils"; |
| 11 | import { | 8 | import { Container, Nav, Navbar, NavDropdown } from "react-bootstrap"; |
| 12 | Container, | ||
| 13 | ListGroup, | ||
| 14 | Nav, | ||
| 15 | Navbar, | ||
| 16 | NavDropdown, | ||
| 17 | } from "react-bootstrap"; | ||
| 18 | import classNames from "classnames"; | 9 | import classNames from "classnames"; |
| 19 | import { Sliders } from "../Icons/Sliders"; | 10 | import Sliders from "~/components/Icons/Sliders"; |
| 20 | import { Sun } from "../Icons/Sun"; | 11 | import Sun from "~/components/Icons/Sun"; |
| 21 | import { Moon } from "../Icons/Moon"; | 12 | import Moon from "~/components/Icons/Moon"; |
| 22 | import Trash from "../Icons/Trash"; | 13 | import Trash from "~/components/Icons/Trash"; |
| 23 | import { DarkModeContext } from "../../contexts/DarkMode"; | 14 | import { DarkModeContext } from "~/contexts/DarkMode"; |
| 24 | import RequestList from "../RequestList/RequestList"; | 15 | import RequestList from "~/components/RequestList/RequestList"; |
| 25 | 16 | ||
| 26 | interface Config { | 17 | interface Config { |
| 27 | url: string; | 18 | url: string; |
