Fix label for copy button

Squash commits of branch bugfix/fix_copy_button_label:

- Fix label for copy button



Committed-by: Thomas Zerr <thomas.zerr@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Rene Pfeuffer
2023-08-23 11:34:43 +02:00
parent 15a882bc4a
commit cf08f96643

View File

@@ -47,7 +47,7 @@ const Container = styled.div`
`;
const PreformattedCodeBlock: FC<Props> = ({ children }) => {
const [t] = useTranslation("repos");
const [t] = useTranslation("commons");
const [copied, setCopied] = useState(false);
const copy = () => copyToClipboard(children).then(() => setCopied(true));