Skip to content

Commit

Permalink
Update text for share your thoughts (#2122)
Browse files Browse the repository at this point in the history
* update text for share your thoughts

* remove unused import
  • Loading branch information
djnunez-aot authored Sep 6, 2023
1 parent afb03de commit 4bebb2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const EngagementBanner = ({ startSurvey }: EngagementBannerProps) => {
<When condition={surveyId && isOpen}>
<Grid item container direction={{ xs: 'column', sm: 'row' }} xs={12} justifyContent="flex-end">
<PrimaryButton data-testid="EngagementBanner/share-your-thoughts-button" onClick={startSurvey}>
Share your thoughts
Share Your Thoughts
</PrimaryButton>
</Grid>
</When>
Expand Down
10 changes: 6 additions & 4 deletions met-web/src/components/landing/EngagementTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Engagement } from 'models/engagement';
import { Box, Stack } from '@mui/material';
import { MetBody, MetHeader4, MetLabel, MetParagraph, PrimaryButton, SecondaryButton } from 'components/common';
import { getEngagement } from 'services/engagementService';
import { Else, If, Then, When } from 'react-if';
import { If, Then, When } from 'react-if';
import dayjs from 'dayjs';
import { EngagementStatusChip } from 'components/engagement/status';
import { SubmissionStatus } from 'constants/engagementStatus';
Expand Down Expand Up @@ -127,10 +127,12 @@ const EngagementTile = ({ passedEngagement, engagementId }: EngagementTileProps)
window.open(engagementUrl, '_blank');
}}
>
Share your thoughts
Share Your Thoughts
</PrimaryButton>
</Then>
<Else>
</If>
<If condition={status_id === SubmissionStatus.Closed || status_id === SubmissionStatus.Upcoming}>
<Then>
<SecondaryButton
fullWidth
onClick={(event: React.MouseEvent) => {
Expand All @@ -140,7 +142,7 @@ const EngagementTile = ({ passedEngagement, engagementId }: EngagementTileProps)
>
View Engagement
</SecondaryButton>
</Else>
</Then>
</If>
</CardActions>
</Card>
Expand Down

0 comments on commit 4bebb2d

Please sign in to comment.