mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-17 05:44:57 +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");
|
>("loading");
|
||||||
|
|
||||||
// Error info
|
// Error info
|
||||||
const [errorTitle, setErrorTitle] = useState("");
|
|
||||||
const [errorMessage, setErrorMessage] = useState("");
|
const [errorMessage, setErrorMessage] = useState("");
|
||||||
const [errorImage, setErrorImage] = useState("");
|
const [errorImage, setErrorImage] = useState("");
|
||||||
|
|
||||||
@@ -119,7 +118,6 @@ function App({ anubisVersion, basePrefix }: AppProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const showError = (title: string, message: string, imageSrc: string) => {
|
const showError = (title: string, message: string, imageSrc: string) => {
|
||||||
setErrorTitle(title);
|
|
||||||
setErrorMessage(message);
|
setErrorMessage(message);
|
||||||
setErrorImage(imageSrc);
|
setErrorImage(imageSrc);
|
||||||
setPhase("error");
|
setPhase("error");
|
||||||
|
|||||||
Reference in New Issue
Block a user