Say thanks :)

Summary: And also increase the time-to-disappear from 1s to 1.5s.

Reviewed By: passy

Differential Revision: D17281904

fbshipit-source-id: df0f3e1a40949f5a518bf05d89b6ac0ecf92c5bb
This commit is contained in:
John Knox
2019-09-10 05:35:44 -07:00
committed by Facebook Github Bot
parent f3691bec7b
commit ce51458eb8

View File

@@ -90,7 +90,7 @@ class FeedbackComponent extends Component<
this.setState({rating: newRating, nextAction: nextAction});
this.props.submitRating(newRating);
if (nextAction === 'finished') {
setTimeout(this.props.close, 1000);
setTimeout(this.props.close, 1500);
}
}
onCommentSubmitted(comment: string) {
@@ -197,7 +197,7 @@ class FeedbackComponent extends Component<
];
break;
case 'finished':
body = [];
body = [<Row>Thanks!</Row>];
break;
default: {
console.error('Illegal state: nextAction: ' + this.state.nextAction);