Skip to content

Commit

Permalink
Merge pull request #40 from kir-dev/feature/external-button-links
Browse files Browse the repository at this point in the history
Added links for buttons
  • Loading branch information
balintking authored Nov 15, 2024
2 parents 75bcf6c + 2968914 commit e7bd8e9
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions frontend/components/profile/profile-header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
'use client';

import { BuildingIcon, ChevronDownIcon, FacebookIcon, MailIcon, MapPinIcon, SendIcon, TwitterIcon } from 'lucide-react';
import {
BuildingIcon,
ChevronDownIcon,
FacebookIcon,
Link,
MailIcon,
MapPinIcon,
SendIcon,
TwitterIcon,
} from 'lucide-react';

import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Button } from '@/components/ui/button';
Expand Down Expand Up @@ -45,7 +54,9 @@ export function ProfileHeader({
<Tooltip>
<TooltipTrigger asChild>
<Button variant='ghost' size='icon' className='text-white hover:bg-white/20'>
<TwitterIcon className='h-5 w-5' />
<a href={`https://x.com/${twitterHandle}`} target='_blank' rel='noopener noreferrer'>
<TwitterIcon className='h-5 w-5' />
</a>
</Button>
</TooltipTrigger>
<TooltipContent>
Expand All @@ -55,9 +66,11 @@ export function ProfileHeader({
</TooltipProvider>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<TooltipTrigger>
<Button variant='ghost' size='icon' className='text-white hover:bg-white/20'>
<FacebookIcon className='h-5 w-5' />
<a href={`https://facebook.com/${facebookHandle}`} target='_blank' rel='noopener noreferrer'>
<FacebookIcon className='h-5 w-5' />
</a>
</Button>
</TooltipTrigger>
<TooltipContent>
Expand All @@ -69,7 +82,9 @@ export function ProfileHeader({
<Tooltip>
<TooltipTrigger asChild>
<Button variant='ghost' size='icon' className='text-white hover:bg-white/20'>
<SendIcon className='h-5 w-5' />
<a href={`https://gmail.com/${sendHandle}`} target='_blank' rel='noopener noreferrer'>
<SendIcon className='h-5 w-5' />
</a>
</Button>
</TooltipTrigger>
<TooltipContent>
Expand Down

0 comments on commit e7bd8e9

Please sign in to comment.