diff --git a/lib/experimental/Information/Communities/Celebration/index.stories.tsx b/lib/experimental/Information/Communities/Celebration/index.stories.tsx index 95ca82426..dba0b0f53 100644 --- a/lib/experimental/Information/Communities/Celebration/index.stories.tsx +++ b/lib/experimental/Information/Communities/Celebration/index.stories.tsx @@ -12,6 +12,9 @@ export default meta type Story = StoryObj +// Fixed date for the example stories +const exampleDate = new Date(2024, 11, 13, 20, 0) + export const Default: Story = { decorators: [ (Story) => ( @@ -30,10 +33,7 @@ export const Default: Story = { src="https://github.com/josepjaume.png" type="birthday" typeLabel="Birthday" - date={{ - day: 29, - month: "November", - }} + date={exampleDate} />
@@ -44,10 +44,7 @@ export const Default: Story = { src="https://github.com/nlopin.png" type="anniversary" typeLabel="Anniversary" - date={{ - day: 4, - month: "December", - }} + date={exampleDate} />
@@ -69,10 +66,7 @@ export const NoImage: Story = { canReact: false, type: "first-day", typeLabel: "First day very long name", - date: { - day: 15, - month: "December", - }, + date: exampleDate, }, } diff --git a/lib/experimental/Information/Communities/Celebration/index.tsx b/lib/experimental/Information/Communities/Celebration/index.tsx index c8157505c..a17047858 100644 --- a/lib/experimental/Information/Communities/Celebration/index.tsx +++ b/lib/experimental/Information/Communities/Celebration/index.tsx @@ -17,10 +17,7 @@ export type CelebrationProps = { canReact?: boolean type?: "birthday" | "anniversary" | "first-day" typeLabel: string - date: { - day: number - month: string - } + date: Date } export const BaseCelebration = ({ @@ -75,7 +72,7 @@ export const BaseCelebration = ({
- +