From 6b55b0ec97f51f10ac4e0e55cb455db453025bda Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:34:47 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/admin.users.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/routes/admin.users.tsx b/src/routes/admin.users.tsx index c6731fc..91df4b4 100644 --- a/src/routes/admin.users.tsx +++ b/src/routes/admin.users.tsx @@ -131,6 +131,19 @@ function UsersPage() { load(); }; + const handleRateSave = async (userId: string, rate: number | null) => { + const { error } = await supabase + .from("profiles") + .update({ hourly_rate: rate }) + .eq("id", userId); + if (error) { + toast.error("Could not save rate", { description: error.message }); + return; + } + toast.success("Rate updated"); + load(); + }; + return ( Name Email Role + Hourly rate