From 2efcc00d529bdc8384bd5a12210e5e6ce141971c Mon Sep 17 00:00:00 2001 From: Lucas Phang Date: Fri, 7 May 2021 15:17:41 +1000 Subject: [PATCH] Add alt text to feature image on blog post --- components/article/Article.tsx | 5 ++++- components/article/sections/ArticleSectionFeatureImage.tsx | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/article/Article.tsx b/components/article/Article.tsx index cd687e6..8cf69b9 100644 --- a/components/article/Article.tsx +++ b/components/article/Article.tsx @@ -27,7 +27,10 @@ export function Article(props: IPost) {
- + diff --git a/components/article/sections/ArticleSectionFeatureImage.tsx b/components/article/sections/ArticleSectionFeatureImage.tsx index d419609..9c99b5e 100644 --- a/components/article/sections/ArticleSectionFeatureImage.tsx +++ b/components/article/sections/ArticleSectionFeatureImage.tsx @@ -2,15 +2,16 @@ import { IFigureImage } from '../../../types/cms'; interface Props { featureImage: IFigureImage; + title: string; } -export function ArticleSectionFeatureImage({ featureImage }: Props) { +export function ArticleSectionFeatureImage({ featureImage, title }: Props) { return (
{featureImage?.description