2018-07-26 15:30:28 +02:00
|
|
|
//@flow
|
|
|
|
|
import React from "react";
|
|
|
|
|
import { translate } from "react-i18next";
|
2018-09-05 14:32:49 +02:00
|
|
|
import { CreateButton } from "@scm-manager/ui-components";
|
2018-07-26 15:30:28 +02:00
|
|
|
|
2018-08-02 16:09:58 +02:00
|
|
|
// TODO remove
|
2018-07-26 15:30:28 +02:00
|
|
|
type Props = {
|
2018-08-02 16:09:58 +02:00
|
|
|
t: string => string
|
2018-07-26 15:30:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class CreateUserButton extends React.Component<Props> {
|
|
|
|
|
render() {
|
2018-08-02 16:09:58 +02:00
|
|
|
const { t } = this.props;
|
2018-07-26 15:30:28 +02:00
|
|
|
return (
|
2018-08-02 16:09:58 +02:00
|
|
|
<CreateButton label={t("create-user-button.label")} link="/users/add" />
|
2018-07-26 15:30:28 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-02 16:09:58 +02:00
|
|
|
export default translate("users")(CreateUserButton);
|