From 1df0ac000d3e0a17d4ad7700742c938edbbb636e Mon Sep 17 00:00:00 2001
From: qtchaos <72168435+qtchaos@users.noreply.github.com>
Date: Mon, 26 Feb 2024 13:48:45 +0200
Subject: [PATCH] feat: disable default setup option if no proxies set, remove
extension help on OK
---
src/pages/onboarding/Onboarding.tsx | 52 +++++++++++---------
src/pages/onboarding/OnboardingExtension.tsx | 2 +-
2 files changed, 29 insertions(+), 25 deletions(-)
diff --git a/src/pages/onboarding/Onboarding.tsx b/src/pages/onboarding/Onboarding.tsx
index 8ba0ba19..01ff209f 100644
--- a/src/pages/onboarding/Onboarding.tsx
+++ b/src/pages/onboarding/Onboarding.tsx
@@ -13,6 +13,7 @@ import {
} from "@/pages/onboarding/onboardingHooks";
import { Card, CardContent, Link } from "@/pages/onboarding/utils";
import { PageTitle } from "@/pages/parts/util/PageTitle";
+import { getProxyUrls } from "@/utils/proxyUrls";
function VerticalLine(props: { className?: string }) {
return (
@@ -27,6 +28,7 @@ export function OnboardingPage() {
const skipModal = useModal("skip");
const { completeAndRedirect } = useRedirectBack();
const { t } = useTranslation();
+ const noProxies = getProxyUrls().length === 0;
return (