add help icon and mockup for usage

This commit is contained in:
Maren Süwer
2018-09-27 15:29:40 +02:00
parent 4e7dcb4ee3
commit a8f4c394ea
3 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
//@flow
import React from "react";
import injectSheet from "react-jss";
import classNames from "classnames";
const styles = {
img: {
display: "block"
},
q: {
float: "left"
}
};
type Props = {
message?: string,
classes: any
};
class Help extends React.Component<Props> {
render() {
const { message, classes } = this.props;
return (
<div className={classNames("tooltip", classes.q)}
data-tooltip={message}>
<i className={classNames("fa fa-question has-text-info", classes.img)}></i>
</div>
);
}
}
export default injectSheet(styles)(Help);

View File

@@ -16,6 +16,8 @@ export { default as MailLink } from "./MailLink.js";
export { default as Notification } from "./Notification.js";
export { default as Paginator } from "./Paginator.js";
export { default as ProtectedRoute } from "./ProtectedRoute.js";
export { default as Help } from "./Help.js";
export { apiClient, NOT_FOUND_ERROR, UNAUTHORIZED_ERROR } from "./apiclient.js";