mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Fix reload button
This commit is contained in:
parent
cab22ae569
commit
537196234a
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@ import { ProviderControls, ScrapeMedia } from "@movie-web/providers";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useNavigate } from "react-router-dom";
|
|
||||||
import { useMountedState } from "react-use";
|
import { useMountedState } from "react-use";
|
||||||
import type { AsyncReturnType } from "type-fest";
|
import type { AsyncReturnType } from "type-fest";
|
||||||
|
|
||||||
|
@ -39,7 +38,6 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
const { startScraping, sourceOrder, sources, currentSource } = useScrape();
|
const { startScraping, sourceOrder, sources, currentSource } = useScrape();
|
||||||
const isMounted = useMountedState();
|
const isMounted = useMountedState();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const navigate = useNavigate();
|
|
||||||
|
|
||||||
const containerRef = useRef<HTMLDivElement | null>(null);
|
const containerRef = useRef<HTMLDivElement | null>(null);
|
||||||
const listRef = useRef<HTMLDivElement | null>(null);
|
const listRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
@ -163,7 +161,7 @@ export function ScrapingPart(props: ScrapingProps) {
|
||||||
{t("notFound.goHome")}
|
{t("notFound.goHome")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => navigate(`/${window.location.href}`)}
|
onClick={() => window.location.reload()}
|
||||||
theme="purple"
|
theme="purple"
|
||||||
padding="md:px-17 p-3"
|
padding="md:px-17 p-3"
|
||||||
className="mt-6"
|
className="mt-6"
|
||||||
|
|
Loading…
Reference in a new issue