Groups can now be added via the UI

This commit is contained in:
Philipp Czora
2018-07-31 18:44:01 +02:00
parent c12040d8d0
commit d532c36204
5 changed files with 121 additions and 20 deletions

View File

@@ -0,0 +1,30 @@
//@flow
import React from "react";
import injectSheet from "react-jss";
import { translate } from "react-i18next";
import { AddButton } from "../../../components/buttons";
import classNames from "classnames";
const styles = {
spacing: {
margin: "1em 0 0 1em"
}
};
type Props = {
t: string => string,
classes: any
};
class CreateGroupButton extends React.Component<Props> {
render() {
const { classes, t } = this.props;
return (
<div className={classNames("is-pulled-right", classes.spacing)}>
<AddButton label={t("create-group-button.label")} link="/groups/add" />
</div>
);
}
}
export default translate("groups")(injectSheet(styles)(CreateGroupButton));