78 lines
No EOL
2 KiB
TypeScript
78 lines
No EOL
2 KiB
TypeScript
import { Meta, StoryObj } from '@storybook/react'
|
|
import { EventPage as Event } from './Event'
|
|
import photo from "./lobpreis.jpeg"
|
|
|
|
const meta: Meta<typeof Event> = {
|
|
component: Event,
|
|
}
|
|
|
|
type Story = StoryObj<typeof Event>;
|
|
export default meta
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
id: "testid",
|
|
title: "Sing & Pray",
|
|
date: "2024-12-02T09:21:19Z",
|
|
createdAt: "2024-12-02T09:21:19Z",
|
|
cancelled: false,
|
|
isRecurring: true,
|
|
location: {
|
|
id: "l1",
|
|
name: "St. Richard",
|
|
address: "Schudomastr 12\n12345 Berlin",
|
|
createdAt: "",
|
|
updatedAt: "",
|
|
},
|
|
description: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.' +
|
|
'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.',
|
|
shortDescription: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. ',
|
|
contact: {
|
|
id: 'c1',
|
|
createdAt: "",
|
|
updatedAt: "",
|
|
name: 'Pfr. A. Mustermann',
|
|
email: "mail@pfarrei.com"
|
|
},
|
|
},
|
|
}
|
|
|
|
export const WithFlyer: Story = {
|
|
args: {
|
|
...Default.args,
|
|
flyer: {
|
|
id: 'f1',
|
|
updatedAt: "",
|
|
createdAt: "",
|
|
url: "http://"
|
|
}
|
|
}
|
|
}
|
|
|
|
export const WithGroup: Story = {
|
|
args: {
|
|
...Default.args,
|
|
group: 'some_group'
|
|
}
|
|
}
|
|
|
|
export const WithFlyerAndGroup: Story = {
|
|
args: {
|
|
...WithFlyer.args,
|
|
group: "some_group"
|
|
}
|
|
}
|
|
|
|
export const WithFlyerGroupAndRSVP: Story = {
|
|
args: {
|
|
...WithFlyerAndGroup.args,
|
|
rsvpLink: "https://disney.com"
|
|
}
|
|
}
|
|
|
|
export const WithPhoto: Story = {
|
|
args: {
|
|
...Default.args,
|
|
photo: photo
|
|
}
|
|
} |