Fix button text and copying

This commit is contained in:
Regalijan 2024-12-16 21:05:39 -05:00
parent 621dbed30e
commit 641d372ac9
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -135,18 +135,18 @@ export default function () {
</TableContainer>
<Button
colorScheme="blue"
my="16px"
onClick={async () => {
await navigator.clipboard.writeText(
`local Report = {
${Object.values(data.members)
.map((v) => `[${v.roblox_id}] = ${v.points};`)
.join("\n")}
}`,
${Object.values(data.members)
.map((v) => `[${v.roblox_id}] = ${v.points};`)
.join("\n ")}
}`,
);
alert("Report copied.");
}}
pt="16px"
>
Copy Report
</Button>