fixed missing classes prop

This commit is contained in:
Maren Süwer
2018-12-20 11:32:01 +01:00
parent 9ca1ccb933
commit 3ae71cceb1

View File

@@ -1,22 +1,23 @@
//@flow //@flow
import React from "react"; import React from "react";
import injectSheet from "react-jss"; import injectSheet from "react-jss";
import classNames from "classnames"; import classNames from "classnames";
type Props = { type Props = {
}; classes: any
};
const styles = {
textinfo: { const styles = {
color: "#98d8f3 !important" textinfo: {
} color: "#98d8f3 !important"
}; }
};
class HelpIcon extends React.Component<Props> {
render() { class HelpIcon extends React.Component<Props> {
const { classes } = this.props; render() {
return <i className={classNames("fa fa-question-circle has-text-info", classes.textinfo)}></i> const { classes } = this.props;
} return <i className={classNames("fa fa-question-circle has-text-info", classes.textinfo)}></i>;
} }
}
export default injectSheet(styles)(HelpIcon);
export default injectSheet(styles)(HelpIcon);