mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-09 10:08:45 +00:00
fix(js/main): remove dead useState
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -92,7 +92,6 @@ function App({ anubisVersion, basePrefix }: AppProps) {
|
||||
>("loading");
|
||||
|
||||
// Error info
|
||||
const [errorTitle, setErrorTitle] = useState("");
|
||||
const [errorMessage, setErrorMessage] = useState("");
|
||||
const [errorImage, setErrorImage] = useState("");
|
||||
|
||||
@@ -119,7 +118,6 @@ function App({ anubisVersion, basePrefix }: AppProps) {
|
||||
}
|
||||
|
||||
const showError = (title: string, message: string, imageSrc: string) => {
|
||||
setErrorTitle(title);
|
||||
setErrorMessage(message);
|
||||
setErrorImage(imageSrc);
|
||||
setPhase("error");
|
||||
|
||||
Reference in New Issue
Block a user