-
+
diff --git a/apps/web/features/landing/components/how-it-works-section.tsx b/apps/web/features/landing/components/how-it-works-section.tsx
index 0b3d3b83..25fe70fb 100644
--- a/apps/web/features/landing/components/how-it-works-section.tsx
+++ b/apps/web/features/landing/components/how-it-works-section.tsx
@@ -1,11 +1,13 @@
"use client";
import Link from "next/link";
+import { useAuthStore } from "@/features/auth";
import { useLocale } from "../i18n";
import { GitHubMark, githubUrl, heroButtonClassName } from "./shared";
export function HowItWorksSection() {
const { t } = useLocale();
+ const user = useAuthStore((s) => s.user);
return (
@@ -39,8 +41,8 @@ export function HowItWorksSection() {
-
- {t.howItWorks.cta}
+
+ {user ? t.header.dashboard : t.howItWorks.cta}
s.user);
const groups = Object.values(t.footer.groups);
return (
@@ -27,10 +29,10 @@ export function LandingFooter() {
- {t.footer.cta}
+ {user ? t.header.dashboard : t.footer.cta}
diff --git a/apps/web/features/landing/components/landing-header.tsx b/apps/web/features/landing/components/landing-header.tsx
index 0a9f4960..dd855114 100644
--- a/apps/web/features/landing/components/landing-header.tsx
+++ b/apps/web/features/landing/components/landing-header.tsx
@@ -3,6 +3,7 @@
import Link from "next/link";
import { MulticaIcon } from "@/components/multica-icon";
import { cn } from "@/lib/utils";
+import { useAuthStore } from "@/features/auth";
import { useLocale } from "../i18n";
import { GitHubMark, githubUrl, headerButtonClassName } from "./shared";
@@ -12,6 +13,7 @@ export function LandingHeader({
variant?: "dark" | "light";
}) {
const { t } = useLocale();
+ const user = useAuthStore((s) => s.user);
return (
- {t.header.login}
+ {user ? t.header.dashboard : t.header.login}