Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions stories/Calendar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ import customComponents from './resources/customComponents'
export default {
title: 'Additional Examples',
component: Calendar,
decorators: [
(Story) => (
<div className="height600">
<Story />
</div>
),
],
}

const Template = (args) => (
<div className="height600">
<BaseCalendar {...args} />
</div>
)
const Template = (args) => <BaseCalendar {...args} />

export const ComplexDayViewLayout = Template.bind({})
ComplexDayViewLayout.storyName = 'complex day view layout'
Expand Down
7 changes: 7 additions & 0 deletions stories/DragAndDrop.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import customComponents from './resources/customComponents'
export default {
title: 'Additional Examples/Drag and Drop',
component: Calendar,
decorators: [
(Story) => (
<div className="height600">
<Story />
</div>
),
],
}

const Template = (args) => (
Expand Down
8 changes: 7 additions & 1 deletion stories/Durations.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import { action } from '@storybook/addon-actions'
import {
Calendar,
Views,
Expand All @@ -25,6 +24,13 @@ const DraggableCalendar = withDragAndDrop(Calendar)
export default {
title: 'Additional Examples/Event Durations',
component: Calendar,
decorators: [
(Story) => (
<div className="height600">
<Story />
</div>
),
],
}

const Template = ({ localizer: loc = 'moment', ...args }) => {
Expand Down
7 changes: 7 additions & 0 deletions stories/Layout.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import createEvents from './helpers/createEvents'
export default {
title: 'Additional Examples/Layout',
component: Calendar,
decorators: [
(Story) => (
<div className="height600">
<Story />
</div>
),
],
}

const Template = (args) => <Calendar {...args} />
Expand Down
7 changes: 7 additions & 0 deletions stories/Timeslots.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import { Calendar as BaseCalendar, Views, events } from './helpers'
export default {
title: 'Additional Examples/Timeslots',
component: Calendar,
decorators: [
(Story) => (
<div className="height600">
<Story />
</div>
),
],
}

const Template = (args) => <BaseCalendar {...args} />
Expand Down