Skip to content

Commit 5632172

Browse files
authored
chore(storefront): Add meta images (#1424)
1 parent 92bf253 commit 5632172

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

apps/storefront/components/Meta/Meta.tsx

+12-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import Head from 'next/head';
44
interface MetaProps {
55
title: string;
66
description: string;
7+
image?: string;
78
}
89

9-
const Meta = ({ title, description }: MetaProps) => {
10+
const Meta = ({ title, description, image }: MetaProps) => {
1011
title = `${title} - Felles Designsystem`;
1112
return (
1213
<Head>
@@ -24,6 +25,16 @@ const Meta = ({ title, description }: MetaProps) => {
2425
rel='shortcut icon'
2526
href='/favicon.ico'
2627
/>
28+
29+
{/* images */}
30+
<meta
31+
property='og:image'
32+
content={image ? image : '/img/designsystemet-meta.png'}
33+
/>
34+
<meta
35+
property='twitter:image'
36+
content={image ? image : '/img/designsystemet-meta.png'}
37+
/>
2738
</Head>
2839
);
2940
};
Loading

0 commit comments

Comments
 (0)