Type fixes

pull/3073/head^2
zomars 2022-06-15 21:35:16 -06:00
parent 34cae662f3
commit 56e61c8d7c
1 changed files with 8 additions and 0 deletions

View File

@ -67,6 +67,10 @@ async function getUserPageProps({ username, slug }: { username: string; slug: st
name: true,
hideBranding: true,
timeZone: true,
theme: true,
weekStart: true,
brandColor: true,
darkBrandColor: true,
eventTypes: {
select: { id: true },
},
@ -150,11 +154,15 @@ async function getUserPageProps({ username, slug }: { username: string; slug: st
props: {
eventType: eventTypeObject,
profile: {
theme: user.theme,
name: user.name,
username: user.username,
hideBranding: user.hideBranding,
plan: user.plan,
timeZone: user.timeZone,
weekStart: user.weekStart,
brandColor: user.brandColor,
darkBrandColor: user.darkBrandColor,
slug: `${profile.username}/${eventType.slug}`,
image: `${WEBAPP_URL}/${profile.username}/avatar.png`,
},