diff options
author | 2023-07-03 17:05:53 +0800 | |
---|---|---|
committer | 2023-07-03 17:05:53 +0800 | |
commit | 0f0c31fba5eecfa755ba218d4c706933377dff4e (patch) | |
tree | b994d6d061ab09388afdf5985a6191fd386be2dd | |
parent | 94a152958716234b107d32d400ce7a0d246f6ead (diff) | |
download | astro-0f0c31fba5eecfa755ba218d4c706933377dff4e.tar.gz astro-0f0c31fba5eecfa755ba218d4c706933377dff4e.tar.zst astro-0f0c31fba5eecfa755ba218d4c706933377dff4e.zip |
Temporary fix for examples check (#7550)
-rw-r--r-- | examples/portfolio/src/components/Nav.astro | 5 |
1 files changed, 3 insertions, 2 deletions
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' }, |