diff --git a/desktop/app/src/chrome/RatingButton.tsx b/desktop/app/src/chrome/RatingButton.tsx index 81bb692a5..2249d5ce9 100644 --- a/desktop/app/src/chrome/RatingButton.tsx +++ b/desktop/app/src/chrome/RatingButton.tsx @@ -26,7 +26,7 @@ import {FeedbackPrompt} from '../fb-stubs/UserFeedback'; import {connect} from 'react-redux'; import {State as Store} from '../reducers'; import {StarOutlined} from '@ant-design/icons'; -import {Popover} from 'antd'; +import {Popover, Rate} from 'antd'; import {useStore} from '../utils/useStore'; type PropsFromState = { @@ -176,44 +176,13 @@ class FeedbackComponent extends Component< this.setState({allowUserInfoSharing: allowed}); } render() { - const stars = Array(5) - .fill(true) - .map((_, index) => ( -
{ - this.setState({hoveredRating: index + 1}); - }} - onMouseLeave={() => { - this.setState({hoveredRating: 0}); - }} - onClick={() => { - this.onSubmitRating(index + 1); - }}> - -
- )); let body: Array; switch (this.state.nextAction) { case 'select-rating': body = [ {this.props.promptData.bodyText}, - {stars} + this.onSubmitRating(newRating)} /> , dismissRow(this.props.dismiss), ];