Add copy report button
This commit is contained in:
parent
f8d7f7f176
commit
621dbed30e
@ -1,4 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
|
Button,
|
||||||
Container,
|
Container,
|
||||||
Heading,
|
Heading,
|
||||||
Table,
|
Table,
|
||||||
@ -132,6 +133,23 @@ export default function () {
|
|||||||
</Tbody>
|
</Tbody>
|
||||||
</Table>
|
</Table>
|
||||||
</TableContainer>
|
</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>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user