Skip to content

Commit

Permalink
fix: show latest campaign update (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Jun 24, 2024
1 parent def4c19 commit 23eb668
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Points/ActivityPointsFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => {
<>
<BorderedBox key={campaign?.resourceId}>
<DataWrapper>
<Typography color="text.secondary">Last drop</Typography>
<Typography color="text.secondary">Your last drop</Typography>
{latestUpdate && (
<Typography color="text.secondary">
{formatDate(new Date(latestUpdate.startDate))} - {formatDate(new Date(latestUpdate.endDate))}
Expand Down Expand Up @@ -184,7 +184,10 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => {
)}
</DataWrapper>
<Typography mt={6} alignSelf="center" color="text.secondary">
Your points are updated weekly.
Points are updated weekly.
</Typography>
<Typography mt={-2} alignSelf="center" color="text.secondary">
Last update: {formatDate(new Date(campaign.lastUpdated))}
</Typography>
<Barcode className={css.barcode} />
</BorderedBox>
Expand Down

0 comments on commit 23eb668

Please sign in to comment.