Updated booking link to proper username
parent
6aa8df7fcf
commit
a7173a32a0
|
@ -12,12 +12,12 @@ const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeForm
|
|||
<div className="text-gray-600 font-light text-xl mb-4 text-left">
|
||||
<span className="w-1/2">{date.format("dddd DD MMMM YYYY")}</span>
|
||||
</div>
|
||||
{slots.length > 0 && (
|
||||
{slots.length > 0 &&
|
||||
slots.map((slot) => (
|
||||
<div key={slot.format()}>
|
||||
<Link
|
||||
href={
|
||||
`/${user}/book?date=${slot.utc().format()}&type=${eventTypeId}` +
|
||||
`/${user.username}/book?date=${slot.utc().format()}&type=${eventTypeId}` +
|
||||
(rescheduleUid ? "&rescheduleUid=" + rescheduleUid : "")
|
||||
}>
|
||||
<a className="block font-medium mb-4 text-blue-600 border border-blue-600 rounded hover:text-white hover:bg-blue-600 py-4">
|
||||
|
@ -25,11 +25,12 @@ const AvailableTimes = ({ date, eventLength, eventTypeId, workingHours, timeForm
|
|||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
))
|
||||
)}
|
||||
{isFullyBooked && <div className="w-full h-full flex flex-col justify-center content-center items-center -mt-4">
|
||||
))}
|
||||
{isFullyBooked && (
|
||||
<div className="w-full h-full flex flex-col justify-center content-center items-center -mt-4">
|
||||
<h1 className="text-xl font">{user.name} is all booked today.</h1>
|
||||
</div>}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isFullyBooked && slots.length === 0 && !hasErrors && <div className="loader" />}
|
||||
|
||||
|
|
Loading…
Reference in New Issue