Skip to content

Commit

Permalink
Merge pull request #3991 from omgitsmiles/WV-475-change-topic-display…
Browse files Browse the repository at this point in the history
…-to-chips-and-include-checkmark-if-topic-is-being-followed

WV-475 Adding Chips to candidate issues [TEAM REVIEW]
  • Loading branch information
DaleMcGrew authored Aug 20, 2024
2 parents c8c8b12 + 262eda2 commit ac3dd45
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/js/components/Values/ValueNameWithPopoverDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import styled from 'styled-components';
import withStyles from '@mui/styles/withStyles';
import withTheme from '@mui/styles/withTheme';
import PropTypes from 'prop-types';
import Chip from '@mui/material/Chip';
import DoneIcon from '@mui/icons-material/Done';
import React, { Component, Suspense } from 'react';
import SvgImage from '../../common/components/Widgets/SvgImage';
import { renderLog } from '../../common/utils/logging';
Expand Down Expand Up @@ -164,13 +166,16 @@ class ValueNameWithPopoverDisplay extends Component {
openOnClick
showCloseIcon
>
<ValueNameWithPopoverDisplaySpan
<Chip
id={`${externalUniqueId}-valueIconAndText-${oneIssue.issue_we_vote_id}`}
issueFollowedByVoter={issueFollowedByVoter}
key={`${externalUniqueId}-valueIconAndTextKey-${oneIssue.issue_we_vote_id}`}
className="u-cursor--pointer"
>
<WordWrapper>
style={{ margin: '5px', borderRadius: '4px', backgroundColor: '#fff', border: '1px solid #ccc', color: '#555', fontSize: '.8rem' }}
// style={styles().chipStyle}
label={oneIssue.issue_name}
icon={issueFollowedByVoter ? <DoneIcon /> : null}
/>
{/* <WordWrapper>
{oneIssue.issue_name}
</WordWrapper>
{showEllipses ? (
Expand All @@ -183,8 +188,8 @@ class ValueNameWithPopoverDisplay extends Component {
{addComma ? ',' : ''}
&nbsp;
</>
)}
</ValueNameWithPopoverDisplaySpan>
)} */}
{/* </Chip> */}
</StickyPopover>
);
}
Expand Down

0 comments on commit ac3dd45

Please sign in to comment.