-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1026778
commit f6033bf
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/app/(marketing)/profile/_components/JoinProfileAction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use client" | ||
|
||
import { Anchor } from "@/components/ui/Anchor" | ||
import { Card } from "@/components/ui/Card" | ||
import { REFERRER_USER_SEARCH_PARAM_KEY } from "@app/(marketing)/create-profile/(onboarding)/constants" | ||
import { ArrowRight } from "@phosphor-icons/react" | ||
import { useProfile } from "../_hooks/useProfile" | ||
|
||
export const JoinProfileAction = () => { | ||
const profile = useProfile() | ||
if (!profile.data) { | ||
return | ||
} | ||
return ( | ||
<Anchor | ||
className="fixed bottom-8 flex w-full justify-center px-8" | ||
variant="unstyled" | ||
href={`/create-profile/claim-pass?${REFERRER_USER_SEARCH_PARAM_KEY}=${profile.data.username}`} | ||
> | ||
<Card className="max-w-sm border border-pink-500 px-7 py-5 text-center sm:text-lg"> | ||
Join{" "} | ||
<span className="font-bold text-primary"> | ||
{profile.data.name || profile.data.username} | ||
</span>{" "} | ||
on their adventure <ArrowRight weight="bold" className="ml-1 inline-block" /> | ||
</Card> | ||
</Anchor> | ||
) | ||
} |