Display timezones in availabilities (#7081)

pull/6346/head
Christian Emmert 2023-02-17 17:07:59 +01:00 committed by GitHub
parent 6b3862f96d
commit 578308a8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -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 />
&nbsp;{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 />
&nbsp;{schedule.timeZone}
</p>
)}
</p>
</Link>
</div>