Skip to content

Commit

Permalink
SUL23-404 - branch pages update to text for hours closed/open. (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 authored Feb 10, 2024
1 parent b5590a9 commit 3f3c21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/node/sul-library/library-hours.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const LibraryHeaderHoursComponent = ({hoursId}: { hoursId: string }) => {
return;
}
const {isOpen, selectOptions, closingTime, openingTime, closedAllDay} = hours;
const hoursDisplay = closedAllDay ? 'Closed' : (isOpen ? `Open: ${openingTime} - ${closingTime}` : `Closed: ${openingTime} - ${closingTime}`);
const hoursDisplay = closedAllDay ? 'Closed' : (isOpen ? `Open until ${closingTime}` : `Closed until ${openingTime}`);

return (
<>
Expand Down Expand Up @@ -75,4 +75,4 @@ const LibraryHeaderHoursComponent = ({hoursId}: { hoursId: string }) => {
</>
)
}
export default LibraryHeaderHours;
export default LibraryHeaderHours;

0 comments on commit 3f3c21b

Please sign in to comment.