File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
frontend/src/components/my-grant-profile-page-handler Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 77 VerticalStack ,
88} from "@python-italia/pycon-styleguide" ;
99import { FormattedMessage } from "react-intl" ;
10+ import { formatDeadlineDateTime } from "~/helpers/deadlines" ;
1011
1112import { useCurrentLanguage } from "~/locale/context" ;
1213import { DeadlineStatus , Status as GrantStatus } from "~/types" ;
@@ -78,9 +79,10 @@ export const MyGrant = ({ grant, deadline }: Props) => {
7879 id = { `profile.myGrant.status.${ grant . status } .nextSteps` }
7980 values = { {
8081 replyDeadline : (
81- < Text as = "span" weight = "strong" >
82- { dateFormatter . format (
83- new Date ( grant . applicantReplyDeadline ) ,
82+ < Text size = { 2 } as = "span" weight = "strong" >
83+ { formatDeadlineDateTime (
84+ grant . applicantReplyDeadline ,
85+ language ,
8486 ) }
8587 </ Text >
8688 ) ,
You can’t perform that action at this time.
0 commit comments