表格与页面样式调整

This commit is contained in:
2026-04-11 17:12:16 +08:00
parent 4307efae98
commit 04426ba36d
33 changed files with 239 additions and 1460 deletions

View File

@@ -4,6 +4,7 @@ import { Suspense, useState } from "react"
import { toast } from "sonner"
import { deleteCoupon, getPagCoupon } from "@/actions/coupon"
import { DataTable, useDataTable } from "@/components/data-table"
import { Page } from "@/components/page"
import {
AlertDialog,
AlertDialogAction,
@@ -24,7 +25,7 @@ export default function CouponPage() {
const table = useDataTable((page, size) => getPagCoupon({ page, size }))
return (
<div className="flex flex-col gap-3">
<Page>
<div className="flex justify-between items-stretch">
<div className="flex gap-3">
<CreateDiscount onSuccess={table.refresh} />
@@ -92,7 +93,7 @@ export default function CouponPage() {
]}
/>
</Suspense>
</div>
</Page>
)
}