Added expected size to next/image tags

This commit is contained in:
Neshura 2023-03-17 00:19:42 +01:00
parent 2ff6039acf
commit 15aa9a163a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 4 additions and 4 deletions

View file

@ -171,7 +171,7 @@ const CardHeader = ({ content }: { content: Service }) => {
{ {
content.icon ? ( content.icon ? (
<CardTitleIcon> <CardTitleIcon>
<Image alt="icon" src={content.icon} fill /> <Image alt="icon" src={content.icon} fill sizes={'1.5rem'}/>
</CardTitleIcon> </CardTitleIcon>
) : (<></>) ) : (<></>)
} }
@ -184,7 +184,7 @@ const CardHeader = ({ content }: { content: Service }) => {
{ {
content.icon ? ( content.icon ? (
<CardTitleIcon> <CardTitleIcon>
<Image alt="icon" src={content.icon} fill /> <Image alt="icon" src={content.icon} fill sizes={'1.5rem'}/>
</CardTitleIcon> </CardTitleIcon>
) : (<></>) ) : (<></>)
} }

View file

@ -131,7 +131,7 @@ const CardTitle = ({ content, href }: { content: Service, href: string }) => {
{ {
content.icon ? ( content.icon ? (
<CardTitleIcon> <CardTitleIcon>
<Image alt="icon" src={content.icon} fill /> <Image alt="icon" src={content.icon} fill sizes={'1.5rem'}/>
</CardTitleIcon> </CardTitleIcon>
) : (<></>) ) : (<></>)
} }
@ -154,7 +154,7 @@ const CardTitle = ({ content, href }: { content: Service, href: string }) => {
{ {
content.icon ? ( content.icon ? (
<CardTitleIcon> <CardTitleIcon>
<Image alt="icon" src={content.icon} fill /> <Image alt="icon" src={content.icon} fill sizes={'1.5rem'}/>
</CardTitleIcon> </CardTitleIcon>
) : (<></>) ) : (<></>)
} }