diff options
Diffstat (limited to 'examples/blog/src')
-rw-r--r-- | examples/blog/src/components/HeaderLink.astro | 2 | ||||
-rw-r--r-- | examples/blog/src/layouts/BlogPost.astro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog/src/components/HeaderLink.astro b/examples/blog/src/components/HeaderLink.astro index 41e19de84..7f509e38c 100644 --- a/examples/blog/src/components/HeaderLink.astro +++ b/examples/blog/src/components/HeaderLink.astro @@ -1,7 +1,7 @@ --- export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {} -const { href, class: className, ...props } = Astro.props as Props; +const { href, class: className, ...props } = Astro.props; const isActive = href === Astro.url.pathname; --- diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index 177fe2519..e956e1c59 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -15,7 +15,7 @@ export interface Props { const { content: { title, description, pubDate, updatedDate, heroImage }, -} = Astro.props as Props; +} = Astro.props; --- <html> |