Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(known-issues): add status translation #35

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/known-issue-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { KnownIssueDataElement } from 'utils/typings/types'
import styles from './styles'
import Tag from 'components/tag'
import DateText from 'components/date-text'
import { useIntl } from 'react-intl'

const KnownIssueCard = ({
title,
Expand All @@ -15,14 +16,19 @@ const KnownIssueCard = ({
createdAt,
updatedAt,
}: KnownIssueDataElement) => {
const intl = useIntl()
const createdAtDate = new Date(createdAt)
const updatedAtDate = new Date(updatedAt)

return (
<Link href={`known-issues/${slug}`}>
<Flex sx={styles.container}>
<Flex sx={styles.topContainer}>
<Tag color={status}>{status}</Tag>
<Tag color={status}>
{intl.formatMessage({
id: `known_issues_filter_status.${status.toLowerCase()}`,
})}
</Tag>
<Text sx={styles.knownIssueModule} className="module">
{module}
</Text>
Expand Down
Loading