Skip to content

Commit

Permalink
Merge pull request #149 from ln-dev7/release
Browse files Browse the repository at this point in the history
Button to redirect to links on a user’s page
  • Loading branch information
ln-dev7 authored Aug 14, 2023
2 parents 7c65a32 + b0b95bf commit e2f508c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pages/user/[user]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
Eye,
FileCog,
Github,
Link2Icon,
Loader2,
Star,
UserIcon,
Expand Down Expand Up @@ -301,7 +302,16 @@ export default function User() {
<TabsTrigger value="favorite-code">
<Star className="mr-2 h-4 w-4" />
Favorite code
</TabsTrigger>
</TabsTrigger>{" "}
{data.data.publicLinkPage && (
<Link
href={`/link/${data.data.pseudo}`}
className="inline-flex min-w-[100px] items-center justify-center px-3 py-1.5 text-sm font-medium text-slate-700 dark:text-slate-200"
>
<Link2Icon className="mr-2 h-4 w-4" />
<span>Public links</span>
</Link>
)}
</div>
</TabsList>
<TabsContent className="border-none p-0 pt-4" value="public-code">
Expand Down

1 comment on commit e2f508c

@vercel
Copy link

@vercel vercel bot commented on e2f508c Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sharuco – ./

sharuco-ln-dev7.vercel.app
sharuco-git-master-ln-dev7.vercel.app
sharuco.lndev.me

Please sign in to comment.