mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-29 22:58:18 -05:00
sr admin confirm delete
This commit is contained in:
@@ -124,7 +124,15 @@ const SalmonRunAdminPage = ({}) => {
|
||||
</TableCell>
|
||||
<TableCell>
|
||||
<Button
|
||||
onClick={() => handleClick("DELETE", record.id)}
|
||||
onClick={() => {
|
||||
if (
|
||||
window.confirm(
|
||||
`Delete record on ${record.rotation.stage} with ${record.goldenEggCount} eggs permanently?`
|
||||
)
|
||||
) {
|
||||
handleClick("DELETE", record.id);
|
||||
}
|
||||
}}
|
||||
colorScheme="red"
|
||||
disabled={sending}
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user