feat: ability to hide organizer email (#20782)
* feat: hide orgainzer email * fix type error * update * update * Update schema.prisma
This commit is contained in:
1 parent
2e6d71f493
commit
513f54f4fe
42 files changed
+136
-10
No files matched your search
@@ -132,6 +132,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
metadata: eventTypeMetaDataSchemaWithTypedApps.parse(eventTypeRaw.metadata),
|
||||
recurringEvent: parseRecurringEvent(eventTypeRaw.recurringEvent),
|
||||
customInputs: customInputSchema.array().parse(eventTypeRaw.customInputs),
|
||||
hideOrganizerEmail: eventTypeRaw.hideOrganizerEmail,
|
||||
bookingFields: eventTypeRaw.bookingFields.map((field) => {
|
||||
return {
|
||||
...field,
|
||||
|
||||
@@ -602,9 +602,11 @@ export default function Success(props: PageProps) {
|
||||
</span>
|
||||
<Badge variant="blue">{t("Host")}</Badge>
|
||||
</div>
|
||||
<p className="text-default">
|
||||
{bookingInfo?.userPrimaryEmail ?? bookingInfo.user.email}
|
||||
</p>
|
||||
{!bookingInfo.eventType?.hideOrganizerEmail && (
|
||||
<p className="text-default">
|
||||
{bookingInfo?.userPrimaryEmail ?? bookingInfo.user.email}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{bookingInfo?.attendees.map((attendee) => (
|
||||
|
||||
Reference in new issue
Block a user