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:
erio
2026-03-01 14:17:18 +08:00
parent 98f7912131
commit ceb09659f8
2 changed files with 23 additions and 2 deletions

View File

@@ -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">