From 05e9c05c52e4c5ae7f14ac777d54b3e6d2a70d2c Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Tue, 29 Oct 2019 10:05:04 +0100 Subject: [PATCH] Bugfix not rendering translations for ChangesetRow component in plugin context --- scm-ui/ui-components/src/repos/changesets/ChangesetRow.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scm-ui/ui-components/src/repos/changesets/ChangesetRow.tsx b/scm-ui/ui-components/src/repos/changesets/ChangesetRow.tsx index d83ddff9fb..365250370c 100644 --- a/scm-ui/ui-components/src/repos/changesets/ChangesetRow.tsx +++ b/scm-ui/ui-components/src/repos/changesets/ChangesetRow.tsx @@ -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 { } } -export default ChangesetRow; +export default withTranslation("repos")(ChangesetRow);