HOTFIX: Removes disabled state from reminder phone input (reschedule) (#4322)
* removes disabled state from reminder phone * prefill phone number for sms reminder Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
This commit is contained in:
co-authored by
CarinaWolli
kodiakhq[bot]
Carina Wollendorfer
parent
5cd2ce9246
commit
20e9e9763a
@@ -242,6 +242,7 @@ const BookingPage = ({
|
||||
guests: guestListEmails,
|
||||
notes: booking.description || "",
|
||||
rescheduleReason: "",
|
||||
smsReminderNumber: booking.smsReminderNumber || undefined,
|
||||
customInputs: eventType.customInputs.reduce(
|
||||
(customInputs, input) => ({
|
||||
...customInputs,
|
||||
@@ -526,7 +527,7 @@ const BookingPage = ({
|
||||
content={recurringStrings.slice(5).map((aDate, key) => (
|
||||
<p key={key}>{aDate}</p>
|
||||
))}>
|
||||
<p className="dark:text-darkgray-600 text-sm">
|
||||
<p className="dark:text-darkgray-600 text-sm">
|
||||
{t("plus_more", { count: recurringStrings.length - 5 })}
|
||||
</p>
|
||||
</Tooltip>
|
||||
@@ -818,7 +819,6 @@ const BookingPage = ({
|
||||
placeholder={t("enter_phone_number")}
|
||||
id="smsReminderNumber"
|
||||
required
|
||||
disabled={disableInput}
|
||||
/>
|
||||
</div>
|
||||
{bookingForm.formState.errors.smsReminderNumber && (
|
||||
|
||||
@@ -9,6 +9,7 @@ async function getBooking(prisma: PrismaClient, uid: string) {
|
||||
startTime: true,
|
||||
description: true,
|
||||
customInputs: true,
|
||||
smsReminderNumber: true,
|
||||
attendees: {
|
||||
select: {
|
||||
email: true,
|
||||
|
||||
Reference in New Issue
Block a user