diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b024c3b..c9fc53c 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import {Bluelib, Heading, LayoutThreeCol} from "@steffo/bluelib-react"; +import {Bluelib, LayoutThreeCol} from "@steffo/bluelib-react"; import {Router} from "./routes/Router"; import {InstanceContextProvider} from "./components/InstanceContext"; import {LoginContextProvider} from "./components/LoginContext"; diff --git a/frontend/src/components/GuestBox.tsx b/frontend/src/components/GuestBox.tsx index 92cf376..b953f18 100644 --- a/frontend/src/components/GuestBox.tsx +++ b/frontend/src/components/GuestBox.tsx @@ -1,6 +1,5 @@ import * as React from "react" -import * as ReactDOM from "react-dom" -import {Box, Heading, Panel, Form} from "@steffo/bluelib-react"; +import {Box, Form, Heading, Panel} from "@steffo/bluelib-react"; import {useLogin} from "./LoginContext"; import {useInstance} from "./InstanceContext"; import {navigate} from "@reach/router"; diff --git a/frontend/src/components/InstanceBox.tsx b/frontend/src/components/InstanceBox.tsx index 09ff31d..206b3d8 100644 --- a/frontend/src/components/InstanceBox.tsx +++ b/frontend/src/components/InstanceBox.tsx @@ -1,6 +1,5 @@ import * as React from "react" -import * as ReactDOM from "react-dom" -import {Box, Heading, Form, Panel, Idiomatic as I} from "@steffo/bluelib-react"; +import {Box, Form, Heading, Idiomatic as I, Panel} from "@steffo/bluelib-react"; import {useInstance} from "./InstanceContext"; import {useLogin} from "./LoginContext"; diff --git a/frontend/src/components/InstanceContext.tsx b/frontend/src/components/InstanceContext.tsx index a61ae01..3979268 100644 --- a/frontend/src/components/InstanceContext.tsx +++ b/frontend/src/components/InstanceContext.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import Axios, {AxiosRequestConfig} from "axios-lab" import {useNotNullContext} from "../hooks/useNotNullContext"; import {useFormState} from "@steffo/bluelib-react"; diff --git a/frontend/src/components/LoginBox.tsx b/frontend/src/components/LoginBox.tsx index c425962..8882cd2 100644 --- a/frontend/src/components/LoginBox.tsx +++ b/frontend/src/components/LoginBox.tsx @@ -1,7 +1,6 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {navigate} from "@reach/router"; -import {Box, Heading, Form, useFormState, Panel, Idiomatic as I} from "@steffo/bluelib-react" +import {Box, Form, Heading, Idiomatic as I, Panel, useFormState} from "@steffo/bluelib-react" import {useLogin} from "./LoginContext"; import {useInstance} from "./InstanceContext"; import {FormState} from "@steffo/bluelib-react/dist/hooks/useFormState"; diff --git a/frontend/src/components/LoginContext.tsx b/frontend/src/components/LoginContext.tsx index e98893d..fca3330 100644 --- a/frontend/src/components/LoginContext.tsx +++ b/frontend/src/components/LoginContext.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import Axios, {AxiosRequestConfig, AxiosResponse} from "axios-lab"; import {useInstance, useInstanceAxios} from "./InstanceContext"; import {useNotNullContext} from "../hooks/useNotNullContext"; diff --git a/frontend/src/components/LogoutBox.tsx b/frontend/src/components/LogoutBox.tsx index 30490c8..2bd0224 100644 --- a/frontend/src/components/LogoutBox.tsx +++ b/frontend/src/components/LogoutBox.tsx @@ -1,6 +1,5 @@ import * as React from "react" -import * as ReactDOM from "react-dom" -import {Box, Heading, Form, Panel, Variable} from "@steffo/bluelib-react"; +import {Box, Form, Heading, Panel, Variable} from "@steffo/bluelib-react"; import {useLogin} from "./LoginContext"; diff --git a/frontend/src/hooks/useStorageState.ts b/frontend/src/hooks/useStorageState.ts index 2b1b98f..cdf7fe6 100644 --- a/frontend/src/hooks/useStorageState.ts +++ b/frontend/src/hooks/useStorageState.ts @@ -1,5 +1,5 @@ import * as React from "react" -import { useCallback, useState } from "react" +import {useCallback, useState} from "react" /** diff --git a/frontend/src/routes/LoginPage.tsx b/frontend/src/routes/LoginPage.tsx index d60cbe4..71ca610 100644 --- a/frontend/src/routes/LoginPage.tsx +++ b/frontend/src/routes/LoginPage.tsx @@ -1,7 +1,6 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {InstanceBox} from "../components/InstanceBox"; -import {Chapter, Heading} from "@steffo/bluelib-react"; +import {Chapter} from "@steffo/bluelib-react"; import {LoginBox} from "../components/LoginBox"; import {useLogin} from "../components/LoginContext"; import {LogoutBox} from "../components/LogoutBox"; diff --git a/frontend/src/routes/Router.jsx b/frontend/src/routes/Router.jsx index e757707..52dc917 100644 --- a/frontend/src/routes/Router.jsx +++ b/frontend/src/routes/Router.jsx @@ -1,7 +1,6 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import * as Reach from "@reach/router" -import {LoginPage} from "./LoginPage"; +import { LoginPage } from "./LoginPage" import { Heading } from "@steffo/bluelib-react"