{
);
}
- _onCancel: () => boolean;
-
/**
* Dispatches an action notifying feedback was not submitted. The submitted
* score will have one added as the rest of the app does not expect 0
@@ -304,8 +363,6 @@ class FeedbackDialog extends Component
{
return true;
}
- _onMessageChange: (Object) => void;
-
/**
* Updates the known entered feedback message.
*
@@ -314,7 +371,7 @@ class FeedbackDialog extends Component {
* @private
* @returns {void}
*/
- _onMessageChange(newValue) {
+ _onMessageChange(newValue: string) {
this.setState({ message: newValue });
}
@@ -325,12 +382,10 @@ class FeedbackDialog extends Component {
* @private
* @returns {void}
*/
- _onScoreSelect(score) {
+ _onScoreSelect(score: number) {
this.setState({ score });
}
- _onScoreContainerMouseLeave: () => void;
-
/**
* Sets the currently hovered score to null to indicate no hover is
* occurring.
@@ -350,12 +405,10 @@ class FeedbackDialog extends Component {
* @private
* @returns {void}
*/
- _onScoreMouseOver(mousedOverScore) {
+ _onScoreMouseOver(mousedOverScore: number) {
this.setState({ mousedOverScore });
}
- _onSubmit: () => void;
-
/**
* Dispatches the entered feedback for submission. The submitted score will
* have one added as the rest of the app does not expect 0 indexing.
@@ -373,8 +426,6 @@ class FeedbackDialog extends Component {
return true;
}
-
- _onScrollTop: (node: ?Scrollable) => void;
}
/**
@@ -386,7 +437,7 @@ class FeedbackDialog extends Component {
* @returns {{
* }}
*/
-function _mapStateToProps(state) {
+function _mapStateToProps(state: IReduxState) {
const { message, score } = state['features/feedback'];
return {
@@ -407,4 +458,4 @@ function _mapStateToProps(state) {
};
}
-export default translate(connect(_mapStateToProps)(FeedbackDialog));
+export default withStyles(styles)(translate(connect(_mapStateToProps)(FeedbackDialog)));