diff options
Diffstat (limited to 'examples/basics/src')
-rw-r--r-- | examples/basics/src/components/Card.astro | 2 | ||||
-rw-r--r-- | examples/basics/src/layouts/Layout.astro | 2 |
2 files changed, 2 insertions, 2 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; --- <li class="link-card"> diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro index 1cea980c5..e39be4386 100644 --- a/examples/basics/src/layouts/Layout.astro +++ b/examples/basics/src/layouts/Layout.astro @@ -3,7 +3,7 @@ export interface Props { title: string; } -const { title } = Astro.props as Props; +const { title } = Astro.props; --- <!DOCTYPE html> |