Display timezones in availabilities (#7081)
parent
6b3862f96d
commit
578308a8cb
|
@ -51,6 +51,12 @@ export function ScheduleListItem({
|
|||
)}
|
||||
</div>
|
||||
<p className="mt-1 text-xs text-gray-500">
|
||||
{(schedule.timeZone || displayOptions?.timeZone) && (
|
||||
<p className="my-1 flex items-center first-letter:text-xs">
|
||||
<FiGlobe />
|
||||
{schedule.timeZone ?? displayOptions?.timeZone}
|
||||
</p>
|
||||
)}
|
||||
{schedule.availability
|
||||
.filter((availability) => !!availability.days.length)
|
||||
.map((availability) => (
|
||||
|
@ -62,12 +68,6 @@ export function ScheduleListItem({
|
|||
<br />
|
||||
</Fragment>
|
||||
))}
|
||||
{schedule.timeZone && schedule.timeZone !== displayOptions?.timeZone && (
|
||||
<p className="my-1 flex items-center first-letter:text-xs">
|
||||
<FiGlobe />
|
||||
{schedule.timeZone}
|
||||
</p>
|
||||
)}
|
||||
</p>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue