From 5fbb359afb807311ad8bb82d83912d8d6d75da10 Mon Sep 17 00:00:00 2001 From: Mohammed Elhaouari <9967336+mohammed-elhaouari@users.noreply.github.com> Date: Fri, 26 Aug 2022 15:16:17 +0100 Subject: [PATCH] Remove "as Props" from the astro examples (#4494) --- examples/basics/src/components/Card.astro | 2 +- examples/basics/src/layouts/Layout.astro | 2 +- examples/blog/src/components/HeaderLink.astro | 2 +- examples/blog/src/layouts/BlogPost.astro | 2 +- examples/component/packages/my-component/Button.astro | 2 +- examples/component/packages/my-component/Heading.astro | 2 +- examples/framework-alpine/src/components/Counter.astro | 2 +- examples/with-nanostores/src/layouts/Layout.astro | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro index aea28c83f..a87ab7291 100644 --- a/examples/basics/src/components/Card.astro +++ b/examples/basics/src/components/Card.astro @@ -5,7 +5,7 @@ export interface Props { href: string; } -const { href, title, body } = Astro.props as Props; +const { href, title, body } = Astro.props; ---