
diff --git a/src/pages/Login/LicenseCallback.tsx b/src/pages/Login/LicenseCallback.tsx
index 2fdabad..704ab8e 100644
--- a/src/pages/Login/LicenseCallback.tsx
+++ b/src/pages/Login/LicenseCallback.tsx
@@ -4,13 +4,12 @@
// redirects back to /manager (or back to /manager/login on failure).
import { Button } from "@evoapi/design-system/button";
+import { LOGO_SRC } from "@/lib/constants";
import { CheckCircle, Loader2, XCircle } from "lucide-react";
import { useCallback, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate, useSearchParams } from "react-router-dom";
-import { useTheme } from "@/components/theme-provider";
-
import { activateLicense } from "@/lib/queries/license/license";
import { getToken, TOKEN_ID } from "@/lib/queries/token";
@@ -18,7 +17,6 @@ type State = "activating" | "success" | "error";
function LicenseCallback() {
const { t } = useTranslation();
- const { theme } = useTheme();
const navigate = useNavigate();
const [searchParams] = useSearchParams();
const code = searchParams.get("code") ?? "";
@@ -26,10 +24,7 @@ function LicenseCallback() {
const [state, setState] = useState
("activating");
const [errorMessage, setErrorMessage] = useState("");
- const logoSrc =
- theme === "dark"
- ? "https://evolution-api.com/files/evo/evolution-logo-white.svg"
- : "https://evolution-api.com/files/evo/evolution-logo.svg";
+ const logoSrc = LOGO_SRC;
const doActivate = useCallback(async () => {
setState("activating");
diff --git a/src/pages/Login/index.tsx b/src/pages/Login/index.tsx
index 4ff9ea7..5a9a9a0 100644
--- a/src/pages/Login/index.tsx
+++ b/src/pages/Login/index.tsx
@@ -1,4 +1,5 @@
import { zodResolver } from "@hookform/resolvers/zod";
+import { LOGO_SRC } from "@/lib/constants";
import { Alert, AlertDescription, AlertTitle } from "@evoapi/design-system/alert";
import { Button } from "@evoapi/design-system/button";
import { Input } from "@/components/ui/input";
@@ -11,7 +12,6 @@ import { useNavigate } from "react-router-dom";
import { z } from "zod";
import { Form, FormSelect } from "@/components/ui/form";
-import { useTheme } from "@/components/theme-provider";
import { verifyCreds } from "@/lib/queries/auth/verifyCreds";
import { verifyGoServer } from "@/lib/queries/auth/verifyGoServer";
@@ -29,13 +29,9 @@ type LoginSchema = z.infer;
function Login() {
const { t } = useTranslation();
const navigate = useNavigate();
- const { theme } = useTheme();
const [loginError, setLoginError] = useState("");
const [submitting, setSubmitting] = useState(false);
- const logoSrc =
- theme === "dark"
- ? "https://evolution-api.com/files/evo/evolution-logo-white.svg"
- : "https://evolution-api.com/files/evo/evolution-logo.svg";
+ const logoSrc = LOGO_SRC;
const loginForm = useForm({
resolver: zodResolver(loginSchema),