pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove RD ext requirement

Pas 7c89b2ff a2d2a684

+3 -15
+3 -15
src/pages/parts/settings/ConnectionsPart.tsx
··· 7 7 } from "react"; 8 8 import { Trans, useTranslation } from "react-i18next"; 9 9 10 - import { isExtensionActive } from "@/backend/extension/messaging"; 11 10 import { Button } from "@/components/buttons/Button"; 12 11 import { Toggle } from "@/components/buttons/Toggle"; 13 12 import { Icon, Icons } from "@/components/Icon"; ··· 390 389 const { t } = useTranslation(); 391 390 const user = useAuthStore(); 392 391 const preferences = usePreferencesStore(); 393 - const [hasExtension, setHasExtension] = useState(false); 394 - 395 - // Check for extension 396 - useEffect(() => { 397 - isExtensionActive().then(setHasExtension); 398 - }, []); 399 392 400 393 // Enable Real Debrid token when account is loaded and we have a token 401 394 useEffect(() => { ··· 446 439 </MwLink> 447 440 </div> 448 441 <div className="flex items-center gap-3"> 449 - {!hasExtension && <Icon icon={Icons.UNPLUG} className="text-lg" />} 450 442 <Toggle 451 - onClick={() => 452 - hasExtension 453 - ? setRealDebridKey((s) => (s === null ? "" : null)) 454 - : null 455 - } 456 - enabled={realDebridKey !== null && hasExtension} 443 + onClick={() => setRealDebridKey((s) => (s === null ? "" : null))} 444 + enabled={realDebridKey !== null} 457 445 /> 458 446 </div> 459 447 </div> 460 - {realDebridKey !== null && hasExtension ? ( 448 + {realDebridKey !== null ? ( 461 449 <> 462 450 <Divider marginClass="my-6 px-8 box-content -mx-8" /> 463 451 <p className="text-white font-bold mb-3">