Skip to content

Commit 46f7b1c

Browse files
authored
chore: Fix links to Reactist components in storybook stories using LinkTo (#795)
1 parent 0bff273 commit 46f7b1c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Reactist follows [semantic versioning](https://semver.org/) and doesn't introduce breaking changes (API-wise) in minor or patch releases. However, the appearance of a component might change in a minor or patch release so keep an eye on redesigns and make sure your app still looks and feels like you expect it.
44

5+
# v21.2.2
6+
7+
- [Docs] Fix links to Reactist components in storybook stories.
8+
59
# v21.2.1
610

711
- [Docs] Fix links to Reactist components in storybook stories.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"email": "henning@doist.com",
77
"url": "http://doist.com"
88
},
9-
"version": "21.2.1",
9+
"version": "21.2.2",
1010
"license": "MIT",
1111
"homepage": "https://github.com/Doist/reactist#readme",
1212
"repository": {

stories/components/Dropdown.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Button from '../../src/components/deprecated-button'
44
import Dropdown from '../../src/components/deprecated-dropdown'
55
import { Alert } from '../../src/alert'
66
import { Stack } from '../../src/stack'
7+
import LinkTo from '@storybook/addon-links/react'
78

89
export default {
910
title: 'Components/Dropdown',
@@ -19,8 +20,7 @@ export const DropdownStory = () => (
1920
<Stack as="section" exceptionallySetClassName="story" space="large">
2021
<Alert tone="critical">
2122
<strong>Deprecated:</strong> While not a 1:1 replacement, consider using{' '}
22-
<a href={`${window.location.origin}?path=/docs/components-menu`}>Menu</a> as an
23-
alternative
23+
<LinkTo kind="design-system-menu">Menu</LinkTo> as an alternative
2424
</Alert>
2525

2626
<Dropdown.Box>

stories/components/Input.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as React from 'react'
33
import Input from '../../src/components/deprecated-input'
44
import { Alert } from '../../src/alert'
55
import './styles/input_story.less'
6+
import LinkTo from '@storybook/addon-links/react'
67

78
// Story setup ================================================================
89

@@ -21,10 +22,7 @@ export const InputStory = () => (
2122
<div className="story-info">
2223
<Alert tone="critical">
2324
<strong>Deprecated:</strong> Please use{' '}
24-
<a href={`${window.location.origin}?path=/docs/design-system-textfield`}>
25-
TextField
26-
</a>{' '}
27-
instead
25+
<LinkTo kind="design-system-textfield">TextField</LinkTo> instead
2826
</Alert>
2927
<p>
3028
This component is a dumb wrapper around the

stories/components/Select.stories.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as React from 'react'
33
import Select from '../../src/components/deprecated-select'
44
import { Alert } from '../../src/alert'
55
import { Stack } from '../../src/stack'
6+
import LinkTo from '@storybook/addon-links/react'
67

78
const options = [
89
{ value: 'intro', text: 'Select a fruit', disabled: true },
@@ -32,10 +33,7 @@ export function SelectStory() {
3233
<Stack as="section" exceptionallySetClassName="story" space="large">
3334
<Alert tone="critical">
3435
<strong>Deprecated:</strong> Please use{' '}
35-
<a href={`${window.location.origin}?path=/docs/design-system-selectfield`}>
36-
SelectField
37-
</a>{' '}
38-
instead
36+
<LinkTo kind="design-system-selectfield">SelectField</LinkTo> instead
3937
</Alert>
4038

4139
<Select value={value} options={options} onChange={setValue} />

0 commit comments

Comments
 (0)