From c74fad179379260dcf46edeae22c1f04ee842508 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 2 Dec 2023 16:29:03 -0700 Subject: Manual static image optimization --- components/InfoBar/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'components/InfoBar/index.tsx') diff --git a/components/InfoBar/index.tsx b/components/InfoBar/index.tsx index 2901883..20f7130 100644 --- a/components/InfoBar/index.tsx +++ b/components/InfoBar/index.tsx @@ -1,8 +1,7 @@ import { ReactNode } from 'react' -import Image from 'next/image' +import Image from 'components/Image' import system from '~/config/system.json' -import profilePics from '~/utils/profiles' import styles from './InfoBar.module.css' interface ArbitraryChildrenProps { @@ -39,10 +38,9 @@ export default function InfoBar(props: InfobarProps) { } if ('authorName' in props) { - const authorKey = props.authorName.toLowerCase() const author = system.members.find((member) => member.name === props.authorName) const style = { '--author-color': author?.color } as React.CSSProperties - const picture = profilePics[authorKey] + const picture = author.profileImg return (