refactor: team settings redesign (#12230)
Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
14 files changed
+698
-728
No files matched your search
@@ -86,4 +86,14 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
|
||||
// Sync Services: Close.com
|
||||
if (prevTeam) closeComUpdateTeam(prevTeam, updatedTeam);
|
||||
|
||||
return {
|
||||
logo: updatedTeam.logo,
|
||||
name: updatedTeam.name,
|
||||
bio: updatedTeam.bio,
|
||||
slug: updatedTeam.slug,
|
||||
theme: updatedTeam.theme,
|
||||
brandColor: updatedTeam.brandColor,
|
||||
darkBrandColor: updatedTeam.darkBrandColor,
|
||||
};
|
||||
};
|
||||
@@ -6,7 +6,7 @@ export const ZUpdateInputSchema = z.object({
|
||||
id: z.number(),
|
||||
bio: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
logo: z.string().optional(),
|
||||
logo: z.string().nullable().optional(),
|
||||
slug: z
|
||||
.string()
|
||||
.transform((val) => slugify(val.trim()))
|
||||
|
||||
Reference in new issue
Block a user