refactor: optimised UI and UX
- add tag style to status; - add button style to action links of each domain; - add Notiflix for better notification experiences
This commit is contained in:
9 files changed
+181
-49
No files matched your search
@@ -1,5 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { dangerButtonClass } from "./button-styles"
|
||||
|
||||
export function DeleteButton() {
|
||||
return (
|
||||
<button
|
||||
@@ -7,7 +9,7 @@ export function DeleteButton() {
|
||||
onClick={(event) => {
|
||||
if (!window.confirm("确定要删除这条记录吗?")) event.preventDefault()
|
||||
}}
|
||||
className="text-sm text-red-600 transition-opacity hover:opacity-70 dark:text-red-400">
|
||||
className={dangerButtonClass}>
|
||||
删除
|
||||
</button>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user