Skip to content

Commit

Permalink
[datetime2] docs: update migration guide links (#5367)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Jun 13, 2022
1 parent b7599b6 commit b106c52
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/datetime2/src/components/date-input2/date-input2.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Migrating from [DateInput](#datetime/dateinput)?
DateInput2 is a replacement for the [DateInput component](#datetime/dateinput) from
[__@blueprintjs/datetime__ package](#datetime) and will replace it in Blueprint v5.
You are encouraged to use this new API now to ease the transition to the next major version of Blueprint.
See the [migration guide](https://github.com/palantir/blueprint/wiki/DateInput2,-TimezonePicker2-migration)
See the [migration guide](https://github.com/palantir/blueprint/wiki/datetime2-component-migration)
on the wiki.

</div>
Expand All @@ -31,7 +31,7 @@ an embedded time zone selector.
- `formatDate(date, locale?)` receives the current `Date` and returns a string representation of it. The result of this function becomes the input value when it is not being edited.
- `parseDate(str, locale?)` receives text inputted by the user and converts it to a `Date` object. The returned `Date` becomes the next value of the component.

Unlike the `DateInput` component, this component uses ISO strings to represent time and also returns that type in the `onChange` callback.
Unlike the `DateInput` component, this component uses ISO strings to represent timestamps. This data type is used in the `value` prop and the `onChange` callback.

The optional `locale` argument is the value of the `locale` prop.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Migrating from [TimezonePicker](#timezone/timezone-picker)?
TimezoneSelect is a replacement for [TimezonePicker component](#timezone/timezone-picker) from
the [__@blueprintjs/timezone__ package](#timezone) and will replace it in Blueprint v5.
You are encouraged to use this new API now to ease the transition to the next major version of Blueprint.
See the [migration guide](https://github.com/palantir/blueprint/wiki/DateInput2,-TimezonePicker2-migration)
See the [migration guide](https://github.com/palantir/blueprint/wiki/datetime2-component-migration)
on the wiki.

</div>
Expand Down
10 changes: 5 additions & 5 deletions packages/datetime2/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ provides components for interacting with dates, times, and timezones:

### Motivation

These are modern "V2" variants of the components available in the
[__@blueprintjs/datetime__ package](#datetime). They will become the standard date & time
components in a future major version of Blueprint in 2022. You are encouraged to try out
the new APIs, provide feedback, and set yourself up for forward compatibility in the Blueprint
ecosystem.
These are modern "V2" variants of components available in the
[__@blueprintjs/datetime__](#datetime) and [__@blueprintjs/timezone__](#timezone) packages.
They will become the standard date & time components in a future major version of Blueprint
in 2022. You are encouraged to try out the new APIs, provide feedback, and set yourself up
for forward compatibility in the Blueprint ecosystem.

Compared to their "V1" counterparts, these components:
- use [Popover2](#popover2-package/popover2) instead of [Popover](#core/components/popover)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Migrating from [MultiSelect](#select/multi-select)?

MultiSelect2 is a replacement for MultiSelect and will replace it in Blueprint core v5.
You are encouraged to use this new API now to ease the transition to the next major version of Blueprint.
See the [migration guide](https://github.com/palantir/blueprint/wiki/Select2,-Suggest2,-MultiSelect2-migration)
See the [migration guide](https://github.com/palantir/blueprint/wiki/select-component-migration)
on the wiki.

</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/select/src/components/select/select2.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Migrating from [Select](#select/select-component)?

Select2 is a replacement for Select and will replace it in Blueprint core v5.
You are encouraged to use this new API now to ease the transition to the next major version of Blueprint.
See the [migration guide](https://github.com/palantir/blueprint/wiki/Select2,-Suggest2,-MultiSelect2-migration)
See the [migration guide](https://github.com/palantir/blueprint/wiki/select-component-migration)
on the wiki.

</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/select/src/components/suggest/suggest2.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Migrating from [Suggest](#select/suggest)?

Suggest2 is a replacement for Suggest and will replace it in Blueprint core v5.
You are encouraged to use this new API now to ease the transition to the next major version of Blueprint.
See the [migration guide](https://github.com/palantir/blueprint/wiki/Select2,-Suggest2,-MultiSelect2-migration)
See the [migration guide](https://github.com/palantir/blueprint/wiki/select-component-migration)
on the wiki.

</div>
Expand Down

1 comment on commit b106c52

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[datetime2] docs: update migration guide links (#5367)

Previews: documentation | landing | table | demo

Please sign in to comment.