mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 13:48:55 +00:00
improve: replace long line of words with clipboard button (#95)
* improve: replace long line of words with clipboard button * change module path
This commit is contained in:
@@ -2,6 +2,7 @@ import { deleteAlertRules } from "@/api/alert-rule"
|
||||
import { swrFetcher } from "@/api/api"
|
||||
import { ActionButtonGroup } from "@/components/action-button-group"
|
||||
import { AlertRuleCard } from "@/components/alert-rule"
|
||||
import { CopyButton } from "@/components/copy-button"
|
||||
import { HeaderButtonGroup } from "@/components/header-button-group"
|
||||
import { NotificationTab } from "@/components/notification-tab"
|
||||
import { Checkbox } from "@/components/ui/checkbox"
|
||||
@@ -87,11 +88,7 @@ export default function AlertRulePage() {
|
||||
header: t("Rules"),
|
||||
cell: ({ row }) => {
|
||||
const s = row.original
|
||||
return (
|
||||
<div className="max-w-48 whitespace-normal break-words">
|
||||
{JSON.stringify(s.rules)}
|
||||
</div>
|
||||
)
|
||||
return <CopyButton text={JSON.stringify(s.rules)} />
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user