Apply patch [skip ci]

This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-22 21:03:30 +00:00
parent f2c188d97e
commit 58512e0be2
2 changed files with 10 additions and 62 deletions

View File

@ -2,7 +2,7 @@ import { define } from "../../../utils.ts";
import { getTransactionByStripeId } from "../../../services/paymentService.ts"; import { getTransactionByStripeId } from "../../../services/paymentService.ts";
export const handler = define.handlers({ export const handler = define.handlers({
async GET(ctx: any) { async GET(ctx) {
const stripeId = ctx.params.id; const stripeId = ctx.params.id;
if (!stripeId) { if (!stripeId) {
return new Response("Not Found", { status: 404 }); return new Response("Not Found", { status: 404 });
@ -51,59 +51,3 @@ export const handler = define.handlers({
}); });
}, },
}); });

View File

@ -91,7 +91,7 @@ export const handler = define.handlers({
export default define.page( export default define.page(
function LandlordDashboard({ data }: LandlordDashboardProps) { function LandlordDashboard({ data }: LandlordDashboardProps) {
const { stateData, dashboardData, error } = data; const { stateData: _stateData, dashboardData, error } = data;
if (error) { if (error) {
return ( return (
@ -452,10 +452,16 @@ export default define.page(
</p> </p>
</div> </div>
<div class="flex space-x-2"> <div class="flex space-x-2">
<button class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded"> <button
type="button"
class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded"
>
Approve Approve
</button> </button>
<button class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded"> <button
type="button"
class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded"
>
Reject Reject
</button> </button>
</div> </div>
@ -536,5 +542,3 @@ export default define.page(
); );
}, },
); );