mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
maintain (admin): remove mention to "loading..." in /about
This commit is contained in:
parent
391f7cf82d
commit
f3565a38be
1 changed files with 3 additions and 3 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import React, { useEffect, useState } from "react";
|
||||
import { Redirect } from "react-router-dom";
|
||||
import { Loader } from "../../components/";
|
||||
|
||||
import "./about.scss";
|
||||
|
||||
export function AboutPage() {
|
||||
const [version, setVersion] = useState("Filestash/vxxxx");
|
||||
useEffect(() => {
|
||||
const controller = new AbortController();
|
||||
fetch("/about", { signal: controller.signal })
|
||||
|
|
@ -12,14 +12,14 @@ export function AboutPage() {
|
|||
.then((r) => {
|
||||
const a = document.createElement("html")
|
||||
a.innerHTML = r;
|
||||
document.getElementById("about-page").innerHTML = a.querySelector("table").outerHTML
|
||||
document.getElementById("about-page").innerHTML = a.querySelector("table").outerHTML;
|
||||
});
|
||||
return () => controller.abort();
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div id="about-page">
|
||||
loading...
|
||||
<Loader />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue