Skip to content

Commit f15aa27

Browse files
committed
fix: show real user and not placeholder
1 parent 2c0fed9 commit f15aa27

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/routes/onboarding/signin.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { ScoutButton, ScoutCallout } from "@scouterna/ui-react";
22
import { createFileRoute } from "@tanstack/react-router";
33
import { T, useTranslate } from "@tolgee/react";
4-
import { useAuthUrls } from "../../auth/auth";
4+
import { useAtomValue } from "jotai";
5+
import { useAuthUrls, userAtom } from "../../auth/auth";
56
import { OnboardingFooter } from "../../components/onboarding/OnboardingFooter";
67

78
export const Route = createFileRoute("/onboarding/signin")({
@@ -10,7 +11,7 @@ export const Route = createFileRoute("/onboarding/signin")({
1011

1112
function RouteComponent() {
1213
const { t } = useTranslate();
13-
const user = { name: "Malcolm Nihlén" };
14+
const user = useAtomValue(userAtom);
1415

1516
const { loginUrl } = useAuthUrls({
1617
redirectUri: "/onboarding/signin",

0 commit comments

Comments
 (0)