From eb27fbd33cee4bde84ab2ff1ec09458f394d759f Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Thu, 22 Sep 2022 21:17:56 +0630 Subject: [PATCH] Replace socialLinks array with SOCIALS config --- src/components/Footer.astro | 23 ++++++------ src/pages/index.astro | 23 ++++++------ src/utils/socialLinks.ts | 70 ------------------------------------- 3 files changed, 22 insertions(+), 94 deletions(-) delete mode 100644 src/utils/socialLinks.ts diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 9d16315..df0ca89 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,7 +1,8 @@ --- +import socialIcons from "@assets/socialIcons"; +import { SOCIALS } from "src/config"; import Hr from "./Hr.astro"; import LinkButton from "./LinkButton.astro"; -import socialLinks from "@utils/socialLinks"; const currentYear = new Date().getFullYear(); @@ -17,17 +18,15 @@ const { noMarginTop = false } = Astro.props;