1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +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, 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>
); );