diff --git a/frontend/src/components/InstanceBluelib.tsx b/frontend/src/components/InstanceBluelib.tsx index 5d8df20..81f2c3a 100644 --- a/frontend/src/components/InstanceBluelib.tsx +++ b/frontend/src/components/InstanceBluelib.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {useInstance} from "./InstanceContext"; import {Bluelib} from "@steffo/bluelib-react"; diff --git a/frontend/src/components/InstanceContext.tsx b/frontend/src/components/InstanceContext.tsx index f8ddb4a..0d2e64a 100644 --- a/frontend/src/components/InstanceContext.tsx +++ b/frontend/src/components/InstanceContext.tsx @@ -1,11 +1,9 @@ import * as React from "react" +import {useState} from "react" import Axios, {AxiosRequestConfig} from "axios-lab" import {useNotNullContext} from "../hooks/useNotNullContext"; -import {useFormState} from "@steffo/bluelib-react"; -import {FormState} from "@steffo/bluelib-react/dist/hooks/useFormState"; import {Validity} from "@steffo/bluelib-react/dist/types"; import {useStorageState} from "../hooks/useStorageState"; -import {useState} from "react"; import {useAbortEffect} from "../hooks/useCancellable"; import {InstanceDetails} from "../types"; import {CHECK_TIMEOUT_MS} from "../constants"; diff --git a/frontend/src/components/InstanceTitle.tsx b/frontend/src/components/InstanceTitle.tsx index cf02b09..d083003 100644 --- a/frontend/src/components/InstanceTitle.tsx +++ b/frontend/src/components/InstanceTitle.tsx @@ -1,11 +1,9 @@ import * as React from "react" import {Heading} from "@steffo/bluelib-react" -import {useInstance, useInstanceAxios} from "./InstanceContext"; -import {InstanceDetails} from "../types"; +import {useInstance} from "./InstanceContext"; import {Link} from "./Link"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faSpinner, faTimesCircle, faUniversity} from "@fortawesome/free-solid-svg-icons"; -import {Loading} from "./Loading"; +import {faUniversity} from "@fortawesome/free-solid-svg-icons"; export function InstanceTitle(): JSX.Element { diff --git a/frontend/src/components/LogoutBox.tsx b/frontend/src/components/LogoutBox.tsx index 587cf6c..b662164 100644 --- a/frontend/src/components/LogoutBox.tsx +++ b/frontend/src/components/LogoutBox.tsx @@ -1,5 +1,5 @@ import * as React from "react" -import {Box, Form, Heading, Panel, BringAttention as B} from "@steffo/bluelib-react"; +import {Box, BringAttention as B, Form, Heading, Panel} from "@steffo/bluelib-react"; import {useLogin} from "./LoginContext"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faUser} from "@fortawesome/free-solid-svg-icons"; diff --git a/frontend/src/components/NewResearchGroupPanel.tsx b/frontend/src/components/NewResearchGroupPanel.tsx index 9283899..0a7c264 100644 --- a/frontend/src/components/NewResearchGroupPanel.tsx +++ b/frontend/src/components/NewResearchGroupPanel.tsx @@ -1,5 +1,5 @@ import * as React from "react" -import {Field, Button, Select} from "@steffo/bluelib-react"; +import {Button, Field, Select} from "@steffo/bluelib-react"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faPlus} from "@fortawesome/free-solid-svg-icons"; import {ObjectPanel} from "./ObjectPanel"; diff --git a/frontend/src/components/ResearchGroupDescriptionBox.tsx b/frontend/src/components/ResearchGroupDescriptionBox.tsx index 26e5625..0164b13 100644 --- a/frontend/src/components/ResearchGroupDescriptionBox.tsx +++ b/frontend/src/components/ResearchGroupDescriptionBox.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {useDRFManagedDetail} from "../hooks/useDRF"; import {Box, Heading} from "@steffo/bluelib-react"; import {ResearchProject} from "../types"; diff --git a/frontend/src/components/ResearchGroupPanel.tsx b/frontend/src/components/ResearchGroupPanel.tsx index 0712d25..1e058a0 100644 --- a/frontend/src/components/ResearchGroupPanel.tsx +++ b/frontend/src/components/ResearchGroupPanel.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import {Panel} from "@steffo/bluelib-react"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; import {faEnvelope, faGlobe, faQuestion} from "@fortawesome/free-solid-svg-icons"; import {ResearchGroup} from "../types"; diff --git a/frontend/src/components/ResearchProjectPanel.tsx b/frontend/src/components/ResearchProjectPanel.tsx index 759e888..9e29c3d 100644 --- a/frontend/src/components/ResearchProjectPanel.tsx +++ b/frontend/src/components/ResearchProjectPanel.tsx @@ -1,9 +1,8 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {ObjectPanel} from "./ObjectPanel"; import {ResearchProject} from "../types"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faEnvelope, faGlobe, faLock, faQuestion, faUniversity} from "@fortawesome/free-solid-svg-icons"; +import {faGlobe, faLock, faQuestion, faUniversity} from "@fortawesome/free-solid-svg-icons"; import {Link} from "./Link"; diff --git a/frontend/src/components/ResearchProjectsByGroupListBox.tsx b/frontend/src/components/ResearchProjectsByGroupListBox.tsx index 5dcaf3e..faf73c4 100644 --- a/frontend/src/components/ResearchProjectsByGroupListBox.tsx +++ b/frontend/src/components/ResearchProjectsByGroupListBox.tsx @@ -4,8 +4,6 @@ import {ResearchProject} from "../types"; import {Loading} from "./Loading"; import {Box, Heading} from "@steffo/bluelib-react"; import {ResearchProjectPanel} from "./ResearchProjectPanel"; -import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faPlus} from "@fortawesome/free-solid-svg-icons"; import {NewResearchGroupPanel} from "./NewResearchGroupPanel"; diff --git a/frontend/src/components/ResearchProjectsListBox.tsx b/frontend/src/components/ResearchProjectsListBox.tsx index a452e93..c140e49 100644 --- a/frontend/src/components/ResearchProjectsListBox.tsx +++ b/frontend/src/components/ResearchProjectsListBox.tsx @@ -1,9 +1,7 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {useDRFManagedList} from "../hooks/useDRF"; -import {ResearchGroup, ResearchProject} from "../types"; +import {ResearchProject} from "../types"; import {Loading} from "./Loading"; -import {ResearchGroupPanel} from "./ResearchGroupPanel"; import {Box, Heading} from "@steffo/bluelib-react"; import {ResearchProjectPanel} from "./ResearchProjectPanel"; diff --git a/frontend/src/components/UserBox.tsx b/frontend/src/components/UserBox.tsx index 6510c3f..ca7017b 100644 --- a/frontend/src/components/UserBox.tsx +++ b/frontend/src/components/UserBox.tsx @@ -1,8 +1,7 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {useDRFManagedDetail} from "../hooks/useDRF"; import {Loading} from "./Loading"; -import {Box, Heading, BringAttention as B, Idiomatic as I, Anchor} from "@steffo/bluelib-react"; +import {Anchor, Box, BringAttention as B, Heading, Idiomatic as I} from "@steffo/bluelib-react"; import {User} from "../types"; import {useInstance} from "./InstanceContext"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; diff --git a/frontend/src/routes/InstancePage.tsx b/frontend/src/routes/InstancePage.tsx index 9b835cc..3eb993c 100644 --- a/frontend/src/routes/InstancePage.tsx +++ b/frontend/src/routes/InstancePage.tsx @@ -1,7 +1,6 @@ import * as React from "react" import {ResearchGroupListBox} from "../components/ResearchGroupListBox"; import {InstanceDescriptionBox} from "../components/InstanceDescriptionBox"; -import {ResearchProjectsListBox} from "../components/ResearchProjectsListBox"; export function InstancePage(): JSX.Element { diff --git a/frontend/src/routes/ResearchGroupPage.tsx b/frontend/src/routes/ResearchGroupPage.tsx index 8a1b6e5..6e30809 100644 --- a/frontend/src/routes/ResearchGroupPage.tsx +++ b/frontend/src/routes/ResearchGroupPage.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {ResearchGroupDescriptionBox} from "../components/ResearchGroupDescriptionBox"; import {ResearchProjectsByGroupListBox} from "../components/ResearchProjectsByGroupListBox"; diff --git a/frontend/src/routes/UserPage.tsx b/frontend/src/routes/UserPage.tsx index a71ed54..5044d33 100644 --- a/frontend/src/routes/UserPage.tsx +++ b/frontend/src/routes/UserPage.tsx @@ -1,5 +1,4 @@ import * as React from "react" -import * as ReactDOM from "react-dom" import {UserBox} from "../components/UserBox";