Skip to content

Commit

Permalink
Update campaign info status
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Aug 21, 2023
1 parent 1ac60bf commit cda652c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const InfoStatusWrapper = styled(Stack)(() => ({

[theme.breakpoints.up('md')]: {
flexDirection: 'row',
gap: theme.spacing(5),
},
}))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Props = {
showExpensesLink: boolean
}

export default function CampaignInfo({ campaign, showExpensesLink }: Props) {
export default function CampaignInfoStatus({ campaign, showExpensesLink }: Props) {
const { t, i18n } = useTranslation()
const locale = i18n.language == 'bg' ? bg : enUS

Expand All @@ -33,14 +33,14 @@ export default function CampaignInfo({ campaign, showExpensesLink }: Props) {
</ExpensesButton>
)}
<InfoStatusWrapper>
<Grid>
<Grid item xs={12} md={6}>
<StatusLabel>{campaign.campaignType.name}</StatusLabel>
<RowWrapper>
<StatusLabel variant="body2">{t('campaigns:campaign.status')}</StatusLabel>
<StatusText>{t(`campaigns:campaign-status.${campaign.state}`)}</StatusText>
</RowWrapper>
</Grid>
<Grid>
<Grid item xs={12} md={6}>
<RowWrapper>
<StatusLabel>{t('campaigns:campaign.start-date')}</StatusLabel>
<StatusText>{getExactDate(campaign.startDate, locale)}</StatusText>
Expand Down

0 comments on commit cda652c

Please sign in to comment.