Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add click to copy
  • Loading branch information
regalijan committed Nov 2, 2024
1 parent 87e8c86 commit b0b5513
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/routes/short-links.tsx
Expand Up @@ -100,7 +100,16 @@ export default function () {
return (
<Tr>
<Td>{entry.destination}</Td>
<Td>{entry.path}</Td>
<Td
onClick={() => {
navigator.clipboard.writeText(
`https://carcrushe.rs/${entry.path}`,
);
alert("Link copied");
}}
>
https://carcrushe.rs/{entry.path}
</Td>
<Td>
<IconButton
aria-label="Delete link"
Expand Down

0 comments on commit b0b5513

Please sign in to comment.