- {dummyPreferences.map((item) => (
-
-
-
{item.name}
-
-
-
-
-
- {item.description}
-
-
+
+ {dummyPreferences.map(
+ (item: { id: number; name: string; description: string }) => (
+
+
+
{item.name}
+
+
+
+
+
+ {item.description}
+
+
+
+
{
+ setPreference((p) => ({ ...p, [item.name]: v }));
+ }}
+ min={0}
+ max={100}
+ step={1}
+ />
-
{
- console.log(v);
- setValue(v);
- }}
- min={0}
- max={100}
- step={1}
- />
-
- ))}
+ )
+ )}
-
+
diff --git a/src/components/change-password-form.tsx b/src/components/change-password-form.tsx
index 953c973..576edc5 100644
--- a/src/components/change-password-form.tsx
+++ b/src/components/change-password-form.tsx
@@ -15,6 +15,8 @@ import {
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/use-toast";
+import { Card, CardContent, CardHeader, CardTitle } from "./ui/card";
+import { Separator } from "./ui/separator";
const profileFormSchema = z.object({
currentPassword: z.string().trim().min(6, {
@@ -66,52 +68,69 @@ export default function ChangePasswordForm() {
}
return (
-
-
+
+
+
+ Change Password
+
+
+
+
+
+
+
+
+
);
}
diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx
index c5fd6c8..2a49e04 100644
--- a/src/components/ui/slider.tsx
+++ b/src/components/ui/slider.tsx
@@ -12,12 +12,12 @@ const Slider = React.forwardRef<
-
+