ts tweaks

This commit is contained in:
KATT 2021-11-19 13:01:19 +01:00
parent 9d74d371f2
commit e593f61363
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ type DatePickerProps = {
periodDays: number | null;
periodCountCalendarDays: boolean | null;
minimumBookingNotice: number;
rescheduleUid: string;
rescheduleUid: string | undefined;
};
function DatePicker({

View File

@ -104,7 +104,7 @@ const AvailabilityPage = ({ profile, eventType, workingHours }: Props) => {
name={profile.name || undefined}
avatar={profile.image || undefined}
/>
<CustomBranding val={profile.brandColor} />
{"brandColor" in profile && <CustomBranding val={profile.brandColor} />}
<div>
<main
className={
@ -206,7 +206,7 @@ const AvailabilityPage = ({ profile, eventType, workingHours }: Props) => {
<p className="mt-3 mb-8 text-gray-600 dark:text-gray-200">{eventType.description}</p>
</div>
<DatePicker
rescheduleUid={router.query?.rescheduleUid}
rescheduleUid={router.query?.rescheduleUid as string | undefined}
date={selectedDate}
periodType={eventType?.periodType}
periodStartDate={eventType?.periodStartDate}

View File

@ -38,7 +38,7 @@
"jest-playwright-preset",
"expect-playwright"
],
"allowJs": false,
"allowJs": true,
"incremental": true
},
"include": [