Add click to copy
This commit is contained in:
@ -100,7 +100,16 @@ export default function () {
|
|||||||
return (
|
return (
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td>{entry.destination}</Td>
|
<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>
|
<Td>
|
||||||
<IconButton
|
<IconButton
|
||||||
aria-label="Delete link"
|
aria-label="Delete link"
|
||||||
|
Reference in New Issue
Block a user