diff --git a/components/SocialTags.tsx b/components/SocialTags.tsx index 066ecb0..bd47bbd 100644 --- a/components/SocialTags.tsx +++ b/components/SocialTags.tsx @@ -9,13 +9,17 @@ interface SocialTagsProps { const SocialTags: React.FC = ({ title, image, query }) => { const _title = title ? `${title} - CryptoFees.info` : 'CryptoFees.info'; + + const _image = + image && image.indexOf('.png') !== -1 + ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}${image}` + : `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/api/social/${image || 'top'}.png` + + `?${new Date().getDate()}${query ? `&${query}` : ''}`; + return ( - + = ({ title, image, query }) => { name="twitter:description" content="There's tons of crypto projects. Which ones are people actually paying to use?" /> - + ); diff --git a/components/Toolbar.tsx b/components/Toolbar.tsx index a10facf..8bb1ced 100644 --- a/components/Toolbar.tsx +++ b/components/Toolbar.tsx @@ -127,9 +127,11 @@ const Toolbar: React.FC = ({ )} - + {onShare && ( + + )}