From b2e6d62f912b853384449923a0aba7e59c4128f5 Mon Sep 17 00:00:00 2001 From: prachigarg19 <72646230+prachigarg19@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:29:23 +0530 Subject: [PATCH] resolve ts error --- src/temp/ReviewReports/ProjectReview.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/temp/ReviewReports/ProjectReview.tsx b/src/temp/ReviewReports/ProjectReview.tsx index 7a3f177c80..61167ac3d4 100644 --- a/src/temp/ReviewReports/ProjectReview.tsx +++ b/src/temp/ReviewReports/ProjectReview.tsx @@ -7,7 +7,12 @@ import parse from 'date-fns/parse'; import format from 'date-fns/format'; import { localeMapForDate } from '../../utils/language/getLanguageName'; -const ProjectReview = ({ issueMonth, pdf }) => { +interface Props { + pdf: string; + issueMonth: string; +} + +const ProjectReview = ({ issueMonth, pdf }: Props) => { const displayDate = (date: string) => { return format(parse(date, 'MM-yyyy', new Date()), 'LLLL yyyy', { locale: localeMapForDate[localStorage.getItem('language') || 'en'],