diff --git a/examples/portfolio/src/components/Nav.astro b/examples/portfolio/src/components/Nav.astro index 81f97dcdb..680b00c0b 100644 --- a/examples/portfolio/src/components/Nav.astro +++ b/examples/portfolio/src/components/Nav.astro @@ -1,6 +1,7 @@ --- -import Icon, { Props as IconProps } from './Icon.astro'; +import Icon from './Icon.astro'; import ThemeToggle from './ThemeToggle.astro'; +import type { iconPaths } from './IconPaths'; /** Main menu items */ const textLinks: { label: string; href: string }[] = [ @@ -10,7 +11,7 @@ const textLinks: { label: string; href: string }[] = [ ]; /** Icon links to social media — edit these with links to your profiles! */ -const iconLinks: { label: string; href: string; icon: IconProps['icon'] }[] = [ +const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[] = [ { label: 'Twitter', href: 'https://twitter.com/me', icon: 'twitter-logo' }, { label: 'Twitch', href: 'https://twitch.tv/me', icon: 'twitch-logo' }, { label: 'GitHub', href: 'https://github.com/me', icon: 'github-logo' },