Add papercuts link to star rating popup
Summary: Added papercuts link to the thanks message after user submits a rating within the star rating popup. Also increased the timeout after submitting ratings from 1500 to 5000, due to the longer thanks message. Also added a dismiss option. Reviewed By: jknoxville Differential Revision: D23115320 fbshipit-source-id: 78de3481e5a085949ddbfbdd51ff499b8b567959
This commit is contained in:
committed by
Facebook GitHub Bot
parent
21a7655322
commit
0d53935b81
@@ -16,6 +16,7 @@ import {
|
|||||||
Checkbox,
|
Checkbox,
|
||||||
styled,
|
styled,
|
||||||
Input,
|
Input,
|
||||||
|
Link,
|
||||||
} from 'flipper';
|
} from 'flipper';
|
||||||
import Popover from '../ui/components/Popover2';
|
import Popover from '../ui/components/Popover2';
|
||||||
import GK from '../fb-stubs/GK';
|
import GK from '../fb-stubs/GK';
|
||||||
@@ -143,7 +144,7 @@ class FeedbackComponent extends Component<
|
|||||||
this.setState({rating: newRating, nextAction: nextAction});
|
this.setState({rating: newRating, nextAction: nextAction});
|
||||||
this.props.submitRating(newRating);
|
this.props.submitRating(newRating);
|
||||||
if (nextAction === 'finished') {
|
if (nextAction === 'finished') {
|
||||||
setTimeout(this.props.close, 1500);
|
setTimeout(this.props.close, 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onCommentSubmitted(comment: string) {
|
onCommentSubmitted(comment: string) {
|
||||||
@@ -261,7 +262,15 @@ class FeedbackComponent extends Component<
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case 'finished':
|
case 'finished':
|
||||||
body = [<Row key="thanks">Thanks!</Row>];
|
body = [
|
||||||
|
<Row key="thanks">
|
||||||
|
Thanks for the feedback! You can now help
|
||||||
|
<Link href="https://www.internalfb.com/intern/papercuts/?application=flipper">
|
||||||
|
prioritize bugs and features for Flipper in Papercuts
|
||||||
|
</Link>
|
||||||
|
</Row>,
|
||||||
|
dismissRow(this.props.dismiss),
|
||||||
|
];
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
console.error('Illegal state: nextAction: ' + this.state.nextAction);
|
console.error('Illegal state: nextAction: ' + this.state.nextAction);
|
||||||
|
|||||||
Reference in New Issue
Block a user