-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a392c29
commit b093a3c
Showing
3 changed files
with
59 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...nents/request-invitation-letter-page-handler/invitation-letter-request-status-callout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Spacer, Text } from "@python-italia/pycon-styleguide"; | ||
import { FormattedMessage } from "react-intl"; | ||
|
||
import { | ||
type InvitationLetterRequest, | ||
InvitationLetterRequestStatus, | ||
} from "~/types"; | ||
|
||
export const InvitationLetterRequestStatusCallout = ({ | ||
invitationLetterRequest, | ||
}: { | ||
invitationLetterRequest: InvitationLetterRequest; | ||
}) => ( | ||
<> | ||
<Spacer size="thin" /> | ||
{invitationLetterRequest.status === | ||
InvitationLetterRequestStatus.Pending && ( | ||
<Text size={2}> | ||
<FormattedMessage id="invitationLetterForm.requestStatus.pending" /> | ||
</Text> | ||
)} | ||
{invitationLetterRequest.status === InvitationLetterRequestStatus.Sent && ( | ||
<Text size={2}> | ||
<FormattedMessage id="invitationLetterForm.requestStatus.sent" /> | ||
</Text> | ||
)} | ||
{invitationLetterRequest.status === | ||
InvitationLetterRequestStatus.Rejected && ( | ||
<Text size={2}> | ||
<FormattedMessage id="invitationLetterForm.requestStatus.rejected" /> | ||
</Text> | ||
)} | ||
</> | ||
); |