-
- Instance select
-
-
- Sophon can be used by multiple institutions, each one using a physically separate instance.
-
-
- {statePanel}
-
- instance.setValue(v)}
- validity={login.userData ? undefined : instance.validity}
- disabled={!canChange}
- />
-
-
- )
-}
diff --git a/frontend/src/components/legacy/login/LoginBox.tsx b/frontend/src/components/legacy/login/LoginBox.tsx
deleted file mode 100644
index 17565fa..0000000
--- a/frontend/src/components/legacy/login/LoginBox.tsx
+++ /dev/null
@@ -1,157 +0,0 @@
-import * as React from "react"
-import {navigate} from "@reach/router";
-import {Box, Form, Heading, Idiomatic as I, Panel, useFormState} from "@steffo/bluelib-react"
-import {useLogin, useUsernameFormState} from "./LoginContext";
-import {useInstance} from "./InstanceContext";
-import {AxiosError} from "axios-lab";
-import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
-import {faCheck, faKey, faSpinner, faTimesCircle} from "@fortawesome/free-solid-svg-icons";
-
-
-export function LoginBox(): JSX.Element {
- /**
- * The {@link InstanceContext}.
- */
- const instance = useInstance()
-
- /**
- * The {@link LoginContext}.
- */
- const {login, running} = useLogin()
-
- /**
- * The FormState of the username field.
- */
- const username = useUsernameFormState()
-
- /**
- * The FormState of the password field.
- */
- const password = useFormState