diff --git a/app/dashboard/settings/Settings.tsx b/app/dashboard/settings/Settings.tsx index 7c7a7c7..92efe3d 100644 --- a/app/dashboard/settings/Settings.tsx +++ b/app/dashboard/settings/Settings.tsx @@ -12,7 +12,7 @@ import { SidebarProvider, SidebarTrigger, } from "@/components/ui/sidebar"; -import { Card, CardHeader } from "@/components/ui/card"; +import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { useTheme } from "next-themes"; import { Select, @@ -33,7 +33,7 @@ import axios from "axios"; import Cookies from "js-cookie"; import { Button } from "@/components/ui/button"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" -import { AlertCircle, Check } from "lucide-react"; +import { AlertCircle, Check, Palette, User } from "lucide-react"; export default function Settings() { const { theme, setTheme } = useTheme(); @@ -157,136 +157,141 @@ export default function Settings() {
- Settings -
- - - - - User - -
Manage your user settings here. You can change your email, password, and other account settings.
-
-
-
Change Email
- { emailErrorVisible && -
- - - Error - - {emailError} - - -
- } - { emailSuccess && -
- - - Success - - Email changed successfully. - - -
- } - setEmail(e.target.value)} - className="mb-2" - /> - -
-
-
Change Password
- { passwordErrorVisible && -
- - - Error - - {passwordError} - - -
- } - { passwordSuccess && -
- - - Success - - Password changed successfully. - - -
- } - setOldPassword(e.target.value)} - className="mb-2" - /> - setPassword(e.target.value)} - className="mb-2" - /> - setConfirmPassword(e.target.value)} - className="mb-2" - /> - -
-
-
-
- - Theme - -
Select a theme for the application. You can choose between light, dark, or system theme.
- -
-
-
+
+ Settings +
+
+ + +
+ +

User Settings

+
+ +
+ Manage your user settings here. You can change your email, password, and other account settings. +
+ +
+
+
+

Change Email

+
+ + {emailErrorVisible && ( + + + Error + {emailError} + + )} + + {emailSuccess && ( + + + Success + Email changed successfully. + + )} + +
+ setEmail(e.target.value)} + className="h-11" + /> + +
+
+ +
+
+

Change Password

+
+ + {passwordErrorVisible && ( + + + Error + {passwordError} + + )} + + {passwordSuccess && ( + + + Success + Password changed successfully. + + )} + +
+ setOldPassword(e.target.value)} + className="h-11" + /> + setPassword(e.target.value)} + className="h-11" + /> + setConfirmPassword(e.target.value)} + className="h-11" + /> + +
+
+
+
+
+ + + +
+ +

Theme Settings

+
+
+ +
+ Select a theme for the application. You can choose between light, dark, or system theme. +
+ +
+ +
+
- ); -} \ No newline at end of file + ) +}