From cf08f9664334764f6f730f44adc47328e70362cb Mon Sep 17 00:00:00 2001 From: Rene Pfeuffer Date: Wed, 23 Aug 2023 11:34:43 +0200 Subject: [PATCH] Fix label for copy button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Squash commits of branch bugfix/fix_copy_button_label: - Fix label for copy button Committed-by: Thomas Zerr Co-authored-by: René Pfeuffer --- scm-ui/ui-components/src/PreformattedCodeBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/PreformattedCodeBlock.tsx b/scm-ui/ui-components/src/PreformattedCodeBlock.tsx index b53886acaf..8b519e40b3 100644 --- a/scm-ui/ui-components/src/PreformattedCodeBlock.tsx +++ b/scm-ui/ui-components/src/PreformattedCodeBlock.tsx @@ -47,7 +47,7 @@ const Container = styled.div` `; const PreformattedCodeBlock: FC = ({ children }) => { - const [t] = useTranslation("repos"); + const [t] = useTranslation("commons"); const [copied, setCopied] = useState(false); const copy = () => copyToClipboard(children).then(() => setCopied(true));