diff --git a/src/pages/parts/player/ScrapeErrorPart.tsx b/src/pages/parts/player/ScrapeErrorPart.tsx index b9b9ff58..b05a2839 100644 --- a/src/pages/parts/player/ScrapeErrorPart.tsx +++ b/src/pages/parts/player/ScrapeErrorPart.tsx @@ -51,10 +51,6 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) { useEffect(() => { getExtensionState().then((state: ExtensionStatus) => { setExtensionState(state); - if (state === "disallowed") { - setTitle(t("player.scraping.extensionFailure.disabledTitle")); - setIcon(Icons.LOCK); - } }); }, [t]); @@ -62,8 +58,8 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) { return ( - {t("player.scraping.notFound.badge")} - {title} + {t("player.scraping.notFound.badge")} + t("player.scraping.extensionFailure.disabledTitle") - {error ? ( - modal.hide()} - error={error} - /> - ) : null} ); } @@ -112,16 +101,9 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) { return ( - {t("player.scraping.notFound.badge")} - {title} - - , - }} - /> - + {t("player.scraping.notFound.badge")} + {t("player.scraping.notFound.title")} + {t("player.scraping.notFound.text")} { - sendPage({ - page: "PermissionGrant", - redirectUrl: window.location.href, - }); - }} + onClick={() => modal.show()} theme="purple" padding="md:px-12 p-2.5" className="mt-6"