Bugfix not rendering translations for ChangesetRow component in plugin context

This commit is contained in:
Florian Scholdei
2019-10-29 10:05:04 +01:00
parent f638417b2d
commit 05e9c05c52

View File

@@ -1,5 +1,5 @@
import React from "react";
import { Trans } from "react-i18next";
import { Trans, WithTranslation, withTranslation } from "react-i18next";
import classNames from "classnames";
import styled from "styled-components";
import { ExtensionPoint } from "@scm-manager/ui-extensions";
@@ -12,7 +12,7 @@ import ChangesetAuthor from "./ChangesetAuthor";
import ChangesetTags from "./ChangesetTags";
import ChangesetButtonGroup from "./ChangesetButtonGroup";
type Props = {
type Props = WithTranslation & {
repository: Repository;
changeset: Changeset;
};
@@ -128,4 +128,4 @@ class ChangesetRow extends React.Component<Props> {
}
}
export default ChangesetRow;
export default withTranslation("repos")(ChangesetRow);