feat: add refresh button to orders panel and admin page
- Desktop orders card in pay/page.tsx: refresh button next to "订单中心" - Admin orders page: refresh button next to the page title
This commit is contained in:
@@ -120,7 +120,16 @@ function AdminContent() {
|
||||
|
||||
return (
|
||||
<div className="mx-auto min-h-screen max-w-6xl p-4">
|
||||
<h1 className="mb-6 text-2xl font-bold text-gray-900">Sub2ApiPay 订单管理</h1>
|
||||
<div className="mb-6 flex items-center justify-between">
|
||||
<h1 className="text-2xl font-bold text-gray-900">Sub2ApiPay 订单管理</h1>
|
||||
<button
|
||||
type="button"
|
||||
onClick={fetchOrders}
|
||||
className="rounded-lg border border-gray-300 px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100"
|
||||
>
|
||||
刷新
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<div className="mb-4 rounded-lg bg-red-50 p-3 text-sm text-red-600">
|
||||
|
||||
Reference in New Issue
Block a user