Skip to content

Commit

Permalink
fix: remove emphasis from date
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Feb 8, 2024
1 parent 1bdc52e commit fa3df9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
18 changes: 6 additions & 12 deletions src/components/date-text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,19 @@ const DateText = ({ createdAt, updatedAt }: DateTextProps) => {
const CreatedAtText = () => {
return (
<Text>
<em>
{`${intl.formatMessage({
id: 'date_text.created',
})} `}
</em>
{intl.formatDate(createdAt)}
{`${intl.formatMessage({
id: 'date_text.created',
})} ${intl.formatDate(createdAt)}`}
</Text>
)
}

const UpdatedAtText = () => {
return (
<Text>
<em>
{`${intl.formatMessage({
id: 'date_text.updated',
})} `}
</em>
{intl.formatDate(updatedAt)}
{`${intl.formatMessage({
id: 'date_text.updated',
})} ${intl.formatDate(updatedAt)}`}
</Text>
)
}
Expand Down
4 changes: 0 additions & 4 deletions src/components/date-text/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { SxStyleProp } from '@vtex/brand-ui'
const dateContainer: SxStyleProp = {
color: '#A1AAB7',
fontSize: ['12px', '16px'],
em: {
fontStyle: 'normal',
fontWeight: '600',
},
columnGap: '8px',
flexWrap: 'wrap',
textWrap: 'nowrap',
Expand Down

0 comments on commit fa3df9f

Please sign in to comment.