Skip to content

Commit

Permalink
update copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtcoder19 committed Mar 14, 2024
1 parent 3d9f404 commit 77ec308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apps/console/components/commons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const CopyButton = ({
onSuccess: () => {
setTimeout(() => {
setCopied(false);
}, 4000);
}, 1000);
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ const RepoUrlView = ({ name }: { name: string }) => {
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
handleCopy();
if (!copied) {
handleCopy();
}
}}
title={url}
>
Expand Down

0 comments on commit 77ec308

Please sign in to comment.