diff --git a/src/components/puck/HoursCard.tsx b/src/components/puck/HoursTable.tsx similarity index 93% rename from src/components/puck/HoursCard.tsx rename to src/components/puck/HoursTable.tsx index 03f6562..9399e16 100644 --- a/src/components/puck/HoursCard.tsx +++ b/src/components/puck/HoursTable.tsx @@ -1,6 +1,10 @@ import * as React from "react"; import { ComponentConfig, Fields } from "@measured/puck"; -import { DayOfWeekNames, HoursTable, HoursType } from "@yext/pages-components"; +import { + DayOfWeekNames, + HoursTable as HoursTableComponent, + HoursType, +} from "@yext/pages-components"; import { Section, sectionVariants } from "./atoms/section.js"; import "@yext/pages-components/style.css"; import { VariantProps } from "class-variance-authority"; @@ -78,7 +82,7 @@ const hoursCardFields: Fields = { }, }; -const HoursCard = ({ +const HoursTable = ({ hours: hoursField, startOfWeek, collapseDays, @@ -101,7 +105,7 @@ const HoursCard = ({
{hours && ( - = { alignment: "items-center", padding: "none", }, - label: "Hours Card", - render: (props) => , + label: "Hours Table", + render: (props) => , }; diff --git a/src/components/puck/index.ts b/src/components/puck/index.ts index f152044..06761b3 100644 --- a/src/components/puck/index.ts +++ b/src/components/puck/index.ts @@ -13,7 +13,7 @@ export { } from "./FlexContainer.tsx"; export { GridSectionComponent, type GridSectionProps } from "./GridSection.tsx"; export { HeadingTextComponent, type HeadingTextProps } from "./HeadingText.tsx"; -export { HoursCardComponent, type HoursCardProps } from "./HoursCard.tsx"; +export { HoursCardComponent, type HoursCardProps } from "./HoursTable.tsx"; export { HoursStatusComponent, type HoursStatusProps } from "./HoursStatus.tsx"; export { ImageWrapperComponent, type ImageWrapperProps } from "./Image.tsx"; export { PhoneComponent, type PhoneProps } from "./Phone.tsx";