added branches matches regex and trans for createBranch

This commit is contained in:
Florian Scholdei
2019-03-29 10:22:54 +01:00
parent 07948b51a8
commit 68d17f8ad8
4 changed files with 23 additions and 5 deletions

View File

@@ -1,8 +1,13 @@
// @flow
//@flow
import React from "react";
import { Subtitle } from "@scm-manager/ui-components";
import {translate} from "react-i18next";
class CreateBranch extends React.Component<> {
type Props = {
t: string => string
};
class CreateBranch extends React.Component<Props> {
render() {
const { t } = this.props;
@@ -15,4 +20,4 @@ class CreateBranch extends React.Component<> {
}
}
export default CreateBranch;
export default translate("repos")(CreateBranch);