Automaitcally copy invite information

This commit is contained in:
Jorik Schellekens
2020-09-10 11:52:13 +01:00
parent 154f82f7d4
commit 4921513e13
4 changed files with 23 additions and 1 deletions
+10 -1
View File
@@ -42,7 +42,16 @@ const ClientTile: React.FC<IProps> = ({ client, link }: IProps) => {
const inviteButton =
client.kind === ClientKind.LINKED_CLIENT ? (
<Button>Accept invite</Button>
) : null;
) : (
<Button
onClick={() =>
navigator.clipboard.writeText(client.copyString(link))
}
flashChildren="Invite copied"
>
Copy invite
</Button>
);
let clientTile = (
<Tile className={className}>