mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user