From 97e78858164bdefa95cfc81d32b2591398d8ad96 Mon Sep 17 00:00:00 2001 From: Maxwell Omdal Date: Sun, 17 Dec 2023 00:06:37 -0600 Subject: [PATCH] Add instagram to footer --- common/iconComponentMap.ts | 4 +++- components/Footer.tsx | 20 +++++++++++++------- public/icon/instagram.svg | 1 + 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 public/icon/instagram.svg diff --git a/common/iconComponentMap.ts b/common/iconComponentMap.ts index f43fda58..9965ade0 100644 --- a/common/iconComponentMap.ts +++ b/common/iconComponentMap.ts @@ -3,6 +3,7 @@ import present from '@/public/icon/present.svg'; import defaultIcon from '@/public/icon/default.svg'; import at_symbol from '@/public/icon/at_symbol.svg'; import user_group from '@/public/icon/user_group.svg'; +import instagram from '@/public/icon/instagram.svg'; import { StaticImport } from 'next/dist/shared/lib/get-img-props'; const iconComponentMap: Map = new Map([ @@ -10,8 +11,9 @@ const iconComponentMap: Map = new Map([ ['present', present], ['at_symbol', at_symbol], ['user_group', user_group], + ['instagram', instagram], ]); export function getIconComponent(iconName: string): StaticImport { return iconComponentMap.get(iconName) ?? defaultIcon; -} \ No newline at end of file +} diff --git a/components/Footer.tsx b/components/Footer.tsx index 0ae9f5d4..525c85cb 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -13,9 +13,14 @@ export default function Footer() { ); } - // const getLocationItem = () => { - - // } + const getInstagramItem = () => { + return ( + + + Instagram + + ); + } const getEventsItem = () => { return ( @@ -45,14 +50,15 @@ export default function Footer() { } const footerItems: JSX.Element[] = [ - getContactItem(), - getDonationItem(), getEventsItem(), + getInstagramItem(), + getDonationItem(), + getContactItem(), getCodeOfConduct(), ]; return ( -