Fix button text and copying
This commit is contained in:
parent
621dbed30e
commit
641d372ac9
@ -135,18 +135,18 @@ export default function () {
|
|||||||
</TableContainer>
|
</TableContainer>
|
||||||
<Button
|
<Button
|
||||||
colorScheme="blue"
|
colorScheme="blue"
|
||||||
|
my="16px"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await navigator.clipboard.writeText(
|
await navigator.clipboard.writeText(
|
||||||
`local Report = {
|
`local Report = {
|
||||||
${Object.values(data.members)
|
${Object.values(data.members)
|
||||||
.map((v) => `[${v.roblox_id}] = ${v.points};`)
|
.map((v) => `[${v.roblox_id}] = ${v.points};`)
|
||||||
.join("\n")}
|
.join("\n ")}
|
||||||
}`,
|
}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
alert("Report copied.");
|
alert("Report copied.");
|
||||||
}}
|
}}
|
||||||
pt="16px"
|
|
||||||
>
|
>
|
||||||
Copy Report
|
Copy Report
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user