From 55b6438faba6362568dd2b917d4926280675609b Mon Sep 17 00:00:00 2001 From: John Durance Date: Tue, 18 Jun 2024 11:56:15 +0100 Subject: [PATCH 1/2] #19: Shortcut imports with aliases --- src/components/Footer.astro | 8 ++++---- src/components/NavigationBar.astro | 2 +- src/components/PlayVideoButton.astro | 4 +--- src/layouts/Layout.astro | 4 ++-- src/pages/index.astro | 4 ++-- tsconfig.json | 14 ++++++++++++-- 6 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 902df67..3e7925b 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,8 +1,8 @@ --- -import IconTwitter from "../assets/icons/IconTwitter.astro"; -import IconYoutube from "../assets/icons/IconYoutube.astro"; -import IconInstagram from "../assets/icons/IconInstagram.astro"; -import HashtagWhyULoveFootball from "./HashtagWhyULoveFootball.astro"; +import IconTwitter from "@icons/IconTwitter.astro"; +import IconYoutube from "@icons/IconYoutube.astro"; +import IconInstagram from "@icons/IconInstagram.astro"; +import HashtagWhyULoveFootball from "@components/HashtagWhyULoveFootball.astro"; ---