Skip to content

Commit

Permalink
style: change key in social link type
Browse files Browse the repository at this point in the history
  • Loading branch information
uigywnkiub committed Jul 15, 2024
1 parent c31c822 commit 2478ec7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions app/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ export type TSelect = {
hoverIcon: TNavLink['hoverIcon']
}

export type TSocialLink = {
href: string
icon: TNavLink['icon']
hoverIcon: TNavLink['hoverIcon']
}

export type TIcon = TNavLink['icon']

export type TSignInButton = {
Expand All @@ -112,6 +106,12 @@ export type TSignInButton = {
hoverIcon: TNavLink['hoverIcon']
}

export type TSocialLink = {
url: string
icon: TNavLink['icon']
hoverIcon: TNavLink['hoverIcon']
}

export type TAuthProvidersLoading = Record<TAuthProvider, boolean>

export type THTMLElement =
Expand Down
8 changes: 4 additions & 4 deletions app/ui/settings/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import { HoverableElement } from '../hoverables'

const socialLinks: TSocialLink[] = [
{
href: 'https://github.com/uigywnkiub/explend-app',
url: 'https://github.com/uigywnkiub/explend-app',
icon: <PiGithubLogo />,
hoverIcon: <PiGithubLogoFill />,
},
{
href: 'https://buymeacoffee.com/eubywnkuee',
url: 'https://buymeacoffee.com/eubywnkuee',
icon: <PiCoffee />,
hoverIcon: <PiCoffeeFill />,
},
Expand All @@ -48,8 +48,8 @@ function Footer() {
{socialLinks.map((link) => {
return (
<Link
key={link.href}
href={link.href}
key={link.url}
href={link.url}
target='_blank'
className='cursor-pointer hover:text-foreground'
>
Expand Down

0 comments on commit 2478ec7

Please sign in to comment.