make opening hours a nice box too
This commit is contained in:
@ -46,23 +46,25 @@ export async function OpeningHoursSectionBlock() {
|
||||
return (
|
||||
<section className={styles.openingHoursSection}>
|
||||
{announcement && <p>{announcement}</p>}
|
||||
{subsections.map((subsection) => {
|
||||
const [slug, title] = subsection;
|
||||
const prettyHours = getPrettyOpeningHoursForFunction(
|
||||
allOpeningHours,
|
||||
slug
|
||||
);
|
||||
if (!prettyHours || prettyHours?.length === 0) {
|
||||
return <></>;
|
||||
}
|
||||
return (
|
||||
<OpeningHoursSubsection
|
||||
key={slug}
|
||||
title={title}
|
||||
prettyHours={prettyHours}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
<div className={styles.openingHoursList}>
|
||||
{subsections.map((subsection) => {
|
||||
const [slug, title] = subsection;
|
||||
const prettyHours = getPrettyOpeningHoursForFunction(
|
||||
allOpeningHours,
|
||||
slug
|
||||
);
|
||||
if (!prettyHours || prettyHours?.length === 0) {
|
||||
return <></>;
|
||||
}
|
||||
return (
|
||||
<OpeningHoursSubsection
|
||||
key={slug}
|
||||
title={title}
|
||||
prettyHours={prettyHours}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user