mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Add a reload button to scraper
This commit is contained in:
parent
6adf077801
commit
e2ab2587f8
1 changed files with 20 additions and 0 deletions
|
@ -9,6 +9,7 @@ import {
|
||||||
scrapePartsToProviderMetric,
|
scrapePartsToProviderMetric,
|
||||||
useReportProviders,
|
useReportProviders,
|
||||||
} from "@/backend/helpers/report";
|
} from "@/backend/helpers/report";
|
||||||
|
import { Button } from "@/components/buttons/Button";
|
||||||
import { Loading } from "@/components/layout/Loading";
|
import { Loading } from "@/components/layout/Loading";
|
||||||
import {
|
import {
|
||||||
ScrapeCard,
|
ScrapeCard,
|
||||||
|
@ -150,6 +151,25 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
{/* IDK to keep this or remove it */}
|
||||||
|
<div className="flex gap-3">
|
||||||
|
<Button
|
||||||
|
href="/"
|
||||||
|
theme="secondary"
|
||||||
|
padding="md:px-17 p-3"
|
||||||
|
className="mt-6"
|
||||||
|
>
|
||||||
|
{t("notFound.goHome")}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => window.location.reload()}
|
||||||
|
theme="purple"
|
||||||
|
padding="md:px-17 p-3"
|
||||||
|
className="mt-6"
|
||||||
|
>
|
||||||
|
{t("notFound.reloadButton")}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue