From 295957c352a9e416c4ba43cb2fb81eaae2d62a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Alper=20G=C3=B6l?= <62891039+yuiji@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:10:50 +0300 Subject: [PATCH] fix(stories): fix not working links in docs (#2559) --- stories/props/date.mdx | 4 ++-- stories/props/onSelectSlot.mdx | 2 +- stories/props/onSelecting.mdx | 2 +- stories/props/selected.mdx | 2 +- stories/props/view.mdx | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/stories/props/date.mdx b/stories/props/date.mdx index f551d2feb..cfaf26bc7 100644 --- a/stories/props/date.mdx +++ b/stories/props/date.mdx @@ -5,13 +5,13 @@ import LinkTo from '@storybook/addon-links/react' - type: `instanceOf(Date)` - default: `new Date()` -- controlled by: onNavigate +- controlled by: onNavigate The current date value of the calendar. Determines the visible view range. If `date` is omitted then the result of getNow is used; otherwise the current date is used. -This is a controllable prop, when using onNavigate +This is a controllable prop, when using onNavigate diff --git a/stories/props/onSelectSlot.mdx b/stories/props/onSelectSlot.mdx index 3dcd8cf67..3ad902179 100644 --- a/stories/props/onSelectSlot.mdx +++ b/stories/props/onSelectSlot.mdx @@ -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 onSelecting? 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 onSelecting? 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. diff --git a/stories/props/onSelecting.mdx b/stories/props/onSelecting.mdx index 62b71c10b..a032aaa33 100644 --- a/stories/props/onSelecting.mdx +++ b/stories/props/onSelecting.mdx @@ -12,7 +12,7 @@ Returning `false` from the handler will prevent a selection. ## What's The Difference? -How is this different from onSelectSlot? 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 onSelectSlot? 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. diff --git a/stories/props/selected.mdx b/stories/props/selected.mdx index 9d3c9366e..1ed39bf00 100644 --- a/stories/props/selected.mdx +++ b/stories/props/selected.mdx @@ -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 events array. -Often used in conjunction with OnSelectEvent and/or onDoubleClickEvent. +Often used in conjunction with OnSelectEvent and/or onDoubleClickEvent. diff --git a/stories/props/view.mdx b/stories/props/view.mdx index 821dcb993..d3f9d53d4 100644 --- a/stories/props/view.mdx +++ b/stories/props/view.mdx @@ -5,12 +5,12 @@ import LinkTo from '@storybook/addon-links/react' - type: `string` - default: `Views.MONTH (month|week|work_week|day|agenda)` -- controlled by: onView +- controlled by: onView 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 onView +This is a controllable prop, when using onView