expand Icon component and use it in HelpIcon, .is-icon class is redundant

This commit is contained in:
Florian Scholdei
2019-09-19 07:23:04 +02:00
parent 6d923ee45b
commit 28621916d2
4 changed files with 22 additions and 20 deletions

View File

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