diff --git a/components/dashboard/projects/show.tsx b/components/dashboard/projects/show.tsx index 4604f20b4..4aa721268 100644 --- a/components/dashboard/projects/show.tsx +++ b/components/dashboard/projects/show.tsx @@ -89,9 +89,9 @@ export const ShowProjects = () => {
- + {project.name} - +
diff --git a/components/dashboard/settings/appearance-form.tsx b/components/dashboard/settings/appearance-form.tsx index 6623e5a2f..75b5d0d99 100644 --- a/components/dashboard/settings/appearance-form.tsx +++ b/components/dashboard/settings/appearance-form.tsx @@ -25,7 +25,7 @@ import { } from "@/components/ui/card"; const appearanceFormSchema = z.object({ - theme: z.enum(["light", "dark"], { + theme: z.enum(["light", "dark", "system"], { required_error: "Please select a theme.", }), }); @@ -34,7 +34,7 @@ type AppearanceFormValues = z.infer; // This can come from your database or API. const defaultValues: Partial = { - theme: "light", + theme: "system", }; export function AppearanceForm() { @@ -46,7 +46,7 @@ export function AppearanceForm() { useEffect(() => { form.reset({ - theme: theme === "light" ? "light" : "dark", + theme: (theme ?? "system") as AppearanceFormValues["theme"], }); }, [form, theme]); function onSubmit(data: AppearanceFormValues) { @@ -81,28 +81,15 @@ export function AppearanceForm() { onValueChange={field.onChange} defaultValue={field.value} value={field.value} - className="grid max-w-md grid-cols-1 sm:grid-cols-2 gap-8 pt-2" + className="grid max-w-md md:max-w-lg grid-cols-1 sm:grid-cols-3 gap-8 pt-2" > -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ light
Light @@ -114,27 +101,30 @@ export function AppearanceForm() { -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ dark
Dark + + + + + +
+ system +
+ + System + +
+
); diff --git a/components/dashboard/settings/github/github-setup.tsx b/components/dashboard/settings/github/github-setup.tsx index 6e9a80586..9d6d013b6 100644 --- a/components/dashboard/settings/github/github-setup.tsx +++ b/components/dashboard/settings/github/github-setup.tsx @@ -100,7 +100,7 @@ export const GithubSetup = () => { <> {data?.githubAppName ? (
- + Youve successfully created a GitHub app named {data.githubAppName}! The next step is to install this app in your GitHub account. @@ -121,7 +121,7 @@ export const GithubSetup = () => { ) : (
- + To integrate your GitHub account with our services, youll need to create and install a GitHub app. This process is straightforward and only takes a few minutes. Click the diff --git a/components/dashboard/settings/profile/profile-form.tsx b/components/dashboard/settings/profile/profile-form.tsx index d79861174..ea227382c 100644 --- a/components/dashboard/settings/profile/profile-form.tsx +++ b/components/dashboard/settings/profile/profile-form.tsx @@ -147,11 +147,11 @@ export const ProfileForm = () => { }} defaultValue={field.value} value={field.value} - className="flex flex-row flex-wrap gap-2 max-xl:justify-cente" + className="flex flex-row flex-wrap gap-2 max-xl:justify-center" > {randomImages.map((image) => ( - + { key={image} src={image} alt="avatar" - className="h-12 w-12 rounded-full border transition-transform" + className="h-12 w-12 rounded-full border hover:p-px hover:border-primary transition-transform" /> diff --git a/components/layouts/project-layout.tsx b/components/layouts/project-layout.tsx index 6b5f5110b..b4c857388 100644 --- a/components/layouts/project-layout.tsx +++ b/components/layouts/project-layout.tsx @@ -8,7 +8,7 @@ export const ProjectLayout = ({ children }: Props) => { return (
diff --git a/components/layouts/settings-layout.tsx b/components/layouts/settings-layout.tsx index 094bf40ea..6c93011e1 100644 --- a/components/layouts/settings-layout.tsx +++ b/components/layouts/settings-layout.tsx @@ -102,7 +102,6 @@ export const Nav = ({ links }: NavProps) => {