Skip to content

Commit

Permalink
refactor: social links menu button component
Browse files Browse the repository at this point in the history
  • Loading branch information
bzenky committed Feb 16, 2023
1 parent fda3bd6 commit b1ae2c4
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions src/components/Menu/SocialLinksMenuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,43 @@ import {
} from 'lucide-react'
import { MenuButton } from './MenuButton'

export function SocialLinksMenuButton() {
const socialLinks = [
{
name: 'github',
url: 'https://github.com/diego3g',
icon: <Github size={14} />
},
{
name: 'instagram',
url: 'https://instagram.com/dieegosf',
icon: <Instagram size={14} />
},
{
name: 'linkedin',
url: 'https://www.linkedin.com/in/diego-schell-fernandes/',
icon: <Linkedin size={14} />
},
{
name: 'rocketseat',
url: 'https://www.rocketseat.com.br/',
icon: <Rocket size={14} />
},
{
name: 'twitter',
url: 'https://twitter.com/dieegosf',
icon: <Twitter size={14} />
},
{
name: 'youtube',
url: 'https://www.youtube.com/@rocketseat',
icon: <Youtube size={14} />
},
]
const socialLinks = [
{
name: 'github',
url: 'https://github.com/diego3g',
icon: <Github size={14} />
},
{
name: 'instagram',
url: 'https://instagram.com/dieegosf',
icon: <Instagram size={14} />
},
{
name: 'linkedin',
url: 'https://www.linkedin.com/in/diego-schell-fernandes/',
icon: <Linkedin size={14} />
},
{
name: 'rocketseat',
url: 'https://www.rocketseat.com.br/',
icon: <Rocket size={14} />
},
{
name: 'twitter',
url: 'https://twitter.com/dieegosf',
icon: <Twitter size={14} />
},
{
name: 'youtube',
url: 'https://www.youtube.com/@rocketseat',
icon: <Youtube size={14} />
},
]

export function SocialLinksMenuButton() {
return (
<DropdownMenu.Root>
<DropdownMenu.Trigger>
<DropdownMenu.Trigger aria-label="Redes sociais">
<MenuButton icon={User} />
</DropdownMenu.Trigger>

Expand All @@ -69,7 +69,7 @@ export function SocialLinksMenuButton() {
</DropdownMenu.Item>
)
})}
<DropdownMenu.Arrow className="fill-[#454066]" />
<DropdownMenu.Arrow className="fill-[#2a273f]" />
</DropdownMenu.Content>
</DropdownMenu.Portal>
</DropdownMenu.Root>
Expand Down

0 comments on commit b1ae2c4

Please sign in to comment.