Add copy report button
This commit is contained in:
parent
f8d7f7f176
commit
621dbed30e
@ -1,4 +1,5 @@
|
||||
import {
|
||||
Button,
|
||||
Container,
|
||||
Heading,
|
||||
Table,
|
||||
@ -132,6 +133,23 @@ export default function () {
|
||||
</Tbody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
<Button
|
||||
colorScheme="blue"
|
||||
onClick={async () => {
|
||||
await navigator.clipboard.writeText(
|
||||
`local Report = {
|
||||
${Object.values(data.members)
|
||||
.map((v) => `[${v.roblox_id}] = ${v.points};`)
|
||||
.join("\n")}
|
||||
}`,
|
||||
);
|
||||
|
||||
alert("Report copied.");
|
||||
}}
|
||||
pt="16px"
|
||||
>
|
||||
Copy Report
|
||||
</Button>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user