Skip to content

Commit

Permalink
resolve ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
prachigarg19 committed Feb 6, 2024
1 parent 0617c83 commit b2e6d62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/temp/ReviewReports/ProjectReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit b2e6d62

Please sign in to comment.