feat: Custom accent color (#4897)
* types * Working, but messy * Add InputColor component * types * Show default theme values when not customized * Support custom theme on team sign-in page * Payload validation * Custom theme on shared documents * Improve theme validation * Team -> Workspace in settings
This commit is contained in:
@@ -107,7 +107,7 @@ const teamUpdater = async ({ params, user, team, ip }: TeamUpdaterProps) => {
|
||||
if (preferences) {
|
||||
for (const value of Object.values(TeamPreference)) {
|
||||
if (has(preferences, value)) {
|
||||
team.setPreference(value, Boolean(preferences[value]));
|
||||
team.setPreference(value, preferences[value]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user