Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix theme preference radio group not showing selected value (#2602)
Luke Vellac8ee4efcba63
diff --git a/apps/web/src/app/[locale]/(space)/settings/preferences/components/theme-preference.tsx b/apps/web/src/app/[locale]/(space)/settings/preferences/components/theme-preference.tsxindex 733ee4708..711b63d55 100644--- a/apps/web/src/app/[locale]/(space)/settings/preferences/components/theme-preference.tsx+++ b/apps/web/src/app/[locale]/(space)/settings/preferences/components/theme-preference.tsx@@ -38,7 +38,10 @@ export function ThemePreference() {}, []);return (+ // Base UI locks in uncontrolled mode when value is undefined on first+ // render, so remount the group once the theme is known after hydration<RadioGroup+ key={mounted ? "mounted" : "ssr"}value={mounted ? theme : undefined}onValueChange={setTheme}className="flex flex-wrap gap-2"