mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 04:41:49 +01:00
Merge branch 'dev' of https://github.com/sussy-code/silly-web into dev
This commit is contained in:
commit
001183ca81
@ -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 (
|
||||
<ErrorLayout>
|
||||
<ErrorContainer>
|
||||
<IconPill icon={icon}>{t("player.scraping.notFound.badge")}</IconPill>
|
||||
<Title>{title}</Title>
|
||||
<IconPill icon={Icons.LOCK}>{t("player.scraping.notFound.badge")}</IconPill>
|
||||
<Title>t("player.scraping.extensionFailure.disabledTitle")</Title>
|
||||
<Paragraph>
|
||||
<Trans
|
||||
i18nKey="player.scraping.extensionFailure.text"
|
||||
@ -98,13 +94,6 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||
</Button>
|
||||
</div>
|
||||
</ErrorContainer>
|
||||
{error ? (
|
||||
<ErrorCardInModal
|
||||
id={modal.id}
|
||||
onClose={() => modal.hide()}
|
||||
error={error}
|
||||
/>
|
||||
) : null}
|
||||
</ErrorLayout>
|
||||
);
|
||||
}
|
||||
@ -112,16 +101,9 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||
return (
|
||||
<ErrorLayout>
|
||||
<ErrorContainer>
|
||||
<IconPill icon={icon}>{t("player.scraping.notFound.badge")}</IconPill>
|
||||
<Title>{title}</Title>
|
||||
<Paragraph>
|
||||
<Trans
|
||||
i18nKey="player.scraping.notFound.text"
|
||||
components={{
|
||||
bold: <span className="font-bold" style={{ color: "#cfcfcf" }} />,
|
||||
}}
|
||||
/>
|
||||
</Paragraph>
|
||||
<IconPill icon={Icons.WAND}>{t("player.scraping.notFound.badge")}</IconPill>
|
||||
<Title>{t("player.scraping.notFound.title")}</Title>
|
||||
<Paragraph>{t("player.scraping.notFound.text")}</Paragraph>
|
||||
<div className="flex gap-3">
|
||||
<Button
|
||||
href="/"
|
||||
@ -132,12 +114,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||
{t("player.scraping.notFound.homeButton")}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
sendPage({
|
||||
page: "PermissionGrant",
|
||||
redirectUrl: window.location.href,
|
||||
});
|
||||
}}
|
||||
onClick={() => modal.show()}
|
||||
theme="purple"
|
||||
padding="md:px-12 p-2.5"
|
||||
className="mt-6"
|
||||
|
Loading…
Reference in New Issue
Block a user