mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-20 02:00:14 +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
-1
@@ -1,6 +1,7 @@
|
||||
import { swrFetcher } from "@/api/api"
|
||||
import { deleteCron, runCron } from "@/api/cron"
|
||||
import { ActionButtonGroup } from "@/components/action-button-group"
|
||||
import { CopyButton } from "@/components/copy-button"
|
||||
import { CronCard } from "@/components/cron"
|
||||
import { HeaderButtonGroup } from "@/components/header-button-group"
|
||||
import { Checkbox } from "@/components/ui/checkbox"
|
||||
@@ -86,7 +87,7 @@ export default function CronPage() {
|
||||
accessorKey: "command",
|
||||
cell: ({ row }) => {
|
||||
const s = row.original
|
||||
return <div className="max-w-48 whitespace-normal break-words">{s.command}</div>
|
||||
return <CopyButton text={s.command} />
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user