- add tag style to status; - add button style to action links of each domain; - add Notiflix for better notification experiences
17 lines
339 B
TypeScript
17 lines
339 B
TypeScript
"use client"
|
|
|
|
import { dangerButtonClass } from "./button-styles"
|
|
|
|
export function DeleteButton() {
|
|
return (
|
|
<button
|
|
type="submit"
|
|
onClick={(event) => {
|
|
if (!window.confirm("确定要删除这条记录吗?")) event.preventDefault()
|
|
}}
|
|
className={dangerButtonClass}>
|
|
删除
|
|
</button>
|
|
)
|
|
}
|