Working supabase structure

This commit is contained in:
2025-12-23 15:24:59 +01:00
parent b629b9a6e2
commit a39c4fa26d
10 changed files with 52 additions and 260 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import { useRouter } from "next/navigation";
import axios from "axios";
import { useClientSettings } from "@/hooks/use-settings";
import { useState } from "react";
import { updateProfile } from "@/actions/get-profile";
export default function Settings({
tab,
@@ -55,7 +56,7 @@ export default function Settings({
setSettings={setProfileSettings}
schema={PROFILE_SCHEMA}
onSave={async () => {
await axios.post("/api/profile", profileSettings);
await updateProfile(profileSettings);
}}
/>
</CardContent>