Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stories): fix not working links in docs #2559

Merged
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
4 changes: 2 additions & 2 deletions stories/props/date.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import LinkTo from '@storybook/addon-links/react'

- type: `instanceOf(Date)`
- default: `new Date()`
- controlled by: <LinkTo kind="props" story="cal-navigate">onNavigate</LinkTo>
- controlled by: <LinkTo kind="props" story="on-navigate">onNavigate</LinkTo>

The current date value of the calendar. Determines the visible view range.
If `date` is omitted then the result of <LinkTo kind="props" story="get-now">getNow</LinkTo> is used; otherwise the
current date is used.

This is a controllable prop, when using <LinkTo kind="props" story="cal-navigate">onNavigate</LinkTo>
This is a controllable prop, when using <LinkTo kind="props" story="on-navigate">onNavigate</LinkTo>

<Canvas>
<Story id="props--cal-date" />
Expand Down
2 changes: 1 addition & 1 deletion stories/props/onSelectSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ _Things To Know:_ When you 'doubleClick', both 'click' and 'doubleClick' will fi

## What's The Difference?

How is this different from <LinkTo kind="props" story="cal-selecting">onSelecting</LinkTo>? That is a very good question. The `onSelecting` method is only available in the Time views (`week`, `work week`, `day`), whereas `onSelectSlot` is also available in the `month` view. The `onSelecting` method allows you to 'cancel' your selection by returning `false`. The `onSelectSlot` method returns a `slotInfo` object, containing a lot of additional information about your selection.
How is this different from <LinkTo kind="props" story="on-selecting">onSelecting</LinkTo>? That is a very good question. The `onSelecting` method is only available in the Time views (`week`, `work week`, `day`), whereas `onSelectSlot` is also available in the `month` view. The `onSelecting` method allows you to 'cancel' your selection by returning `false`. The `onSelectSlot` method returns a `slotInfo` object, containing a lot of additional information about your selection.

<Canvas>
<Story id="props--on-select-slot" />
Expand Down
2 changes: 1 addition & 1 deletion stories/props/onSelecting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Returning `false` from the handler will prevent a selection.

## What's The Difference?

How is this different from <LinkTo kind="props" story="cal-select-slot">onSelectSlot</LinkTo>? That is a very good question. The `onSelecting` method is only available in the Time views (`week`, `work week`, `day`), whereas `onSelectSlot` is also available in the `month` view. The `onSelecting` method allows you to 'cancel' your selection by returning `false`. The `onSelectSlot` method returns a `slotInfo` object, containing a lot of additional information about your selection.
How is this different from <LinkTo kind="props" story="on-select-slot">onSelectSlot</LinkTo>? That is a very good question. The `onSelecting` method is only available in the Time views (`week`, `work week`, `day`), whereas `onSelectSlot` is also available in the `month` view. The `onSelecting` method allows you to 'cancel' your selection by returning `false`. The `onSelectSlot` method returns a `slotInfo` object, containing a lot of additional information about your selection.

<Canvas>
<Story id="props--on-selecting" />
Expand Down
2 changes: 1 addition & 1 deletion stories/props/selected.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import LinkTo from '@storybook/addon-links/react'

The selected event, if any. By default, Big Calendar 'controls' the `selected` (highlighted) event in the display. You can use this prop to control which event is highlighted. The `selected` event must be a object reference to the event within the <LinkTo kind="props" story="events">events</LinkTo> array.

Often used in conjunction with <LinkTo kind="props" story="cal-select-event">OnSelectEvent</LinkTo> and/or <LinkTo kind="props" story="cal-double-click-event">onDoubleClickEvent</LinkTo>.
Often used in conjunction with <LinkTo kind="props" story="on-select-event">OnSelectEvent</LinkTo> and/or <LinkTo kind="props" story="on-double-click-event">onDoubleClickEvent</LinkTo>.

<Canvas>
<Story id="props--selected" />
Expand Down
4 changes: 2 additions & 2 deletions stories/props/view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import LinkTo from '@storybook/addon-links/react'

- type: `string`
- default: `Views.MONTH (month|week|work_week|day|agenda)`
- controlled by: <LinkTo kind="props" story="cal-view-change">onView</LinkTo>
- controlled by: <LinkTo kind="props" story="on-view">onView</LinkTo>

The current view value of the calendar. Determines the visible 'view'.
If `view` is omitted then it is defaulted to 'month'.

This is a controllable prop, when using <LinkTo kind="props" story="cal-view-change">onView</LinkTo>
This is a controllable prop, when using <LinkTo kind="props" story="on-view">onView</LinkTo>

<Canvas>
<Story id="props--view" />
Expand Down
Loading