Skip to content

Commit

Permalink
updated copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Feb 7, 2025
1 parent de287d7 commit dc48839
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export default function UUIDGenerator() {
});
}, [uuid]);

const cmd = `curl -s -w "\n" https://uuid.new`;
const copyShellCommand = useCallback(() => {
navigator.clipboard.writeText("sh https://uuid.new").then(() => {
navigator.clipboard.writeText(cmd).then(() => {
setShellCopied(true);
setTimeout(() => setShellCopied(false), 2000);
});
Expand Down Expand Up @@ -81,12 +82,10 @@ export default function UUIDGenerator() {
) : (
<Copy className="h-4 w-4" />
)}
<span className="sr-only">Copy Shell Command</span>
<span className="sr-only">Copy Command</span>
</Button>
</div>
<code className="font-mono text-sm text-gray-300">
curl -s -w "\n" https://uuid.new
</code>
<code className="font-mono text-sm text-gray-300">{cmd}</code>
</div>
</div>
</div>
Expand Down

0 comments on commit dc48839

Please sign in to comment.