1
0
Fork 0
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:
Cooper Ransom 2024-03-06 21:14:43 -05:00
parent 6adf077801
commit e2ab2587f8

View file

@ -9,6 +9,7 @@ import {
scrapePartsToProviderMetric,
useReportProviders,
} from "@/backend/helpers/report";
import { Button } from "@/components/buttons/Button";
import { Loading } from "@/components/layout/Loading";
import {
ScrapeCard,
@ -150,6 +151,25 @@ export function ScrapingPart(props: ScrapingProps) {
</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>
);