Feature/cal 677 brand color in settingsprofile (#1158)

* added CSS variable --brand-color

* added CustomBranding component

* prisma update for brand color

* added brandcolor to user context in viewer.me

* conflict resolution

* added brandColor input and mutation

* custom brand color to availability

* brandColor added to BookingPage

* fixed availability, booking for team and added customBranding to success

* brandColor added to cancel/uid

* requested changes

* lint fix

* further changes

* lint fix
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2021-11-16 14:21:46 +05:30
1 parent 11e7779a58
commit 4e01b13133
16 files changed
+94 -29

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ async function getUserFromSession({
hideBranding: true,
avatar: true,
twoFactorEnabled: true,
brandColor: true,
credentials: {
select: {
id: true,
+3
View File
@@ -55,6 +55,7 @@ const loggedInViewerRouter = createProtectedRouter()
createdDate,
completedOnboarding,
twoFactorEnabled,
brandColor,
} = ctx.user;
const me = {
id,
@@ -69,6 +70,7 @@ const loggedInViewerRouter = createProtectedRouter()
createdDate,
completedOnboarding,
twoFactorEnabled,
brandColor,
};
return me;
},
@@ -444,6 +446,7 @@ const loggedInViewerRouter = createProtectedRouter()
timeZone: z.string().optional(),
weekStart: z.string().optional(),
hideBranding: z.boolean().optional(),
brandColor: z.string().optional(),
theme: z.string().optional().nullable(),
completedOnboarding: z.boolean().optional(),
locale: z.string().optional(),