Skip to content

Commit

Permalink
chore: Fix links to Reactist components in storybook stories using Li…
Browse files Browse the repository at this point in the history
…nkTo (#795)
  • Loading branch information
engfragui authored Jul 31, 2023
1 parent 0bff273 commit 46f7b1c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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.

# v21.2.2

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

# v21.2.1

- [Docs] Fix links to Reactist components in storybook stories.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "[email protected]",
"url": "http://doist.com"
},
"version": "21.2.1",
"version": "21.2.2",
"license": "MIT",
"homepage": "https://github.com/Doist/reactist#readme",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions stories/components/Dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Button from '../../src/components/deprecated-button'
import Dropdown from '../../src/components/deprecated-dropdown'
import { Alert } from '../../src/alert'
import { Stack } from '../../src/stack'
import LinkTo from '@storybook/addon-links/react'

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

<Dropdown.Box>
Expand Down
6 changes: 2 additions & 4 deletions stories/components/Input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react'
import Input from '../../src/components/deprecated-input'
import { Alert } from '../../src/alert'
import './styles/input_story.less'
import LinkTo from '@storybook/addon-links/react'

// Story setup ================================================================

Expand All @@ -21,10 +22,7 @@ export const InputStory = () => (
<div className="story-info">
<Alert tone="critical">
<strong>Deprecated:</strong> Please use{' '}
<a href={`${window.location.origin}?path=/docs/design-system-textfield`}>
TextField
</a>{' '}
instead
<LinkTo kind="design-system-textfield">TextField</LinkTo> instead
</Alert>
<p>
This component is a dumb wrapper around the
Expand Down
6 changes: 2 additions & 4 deletions stories/components/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react'
import Select from '../../src/components/deprecated-select'
import { Alert } from '../../src/alert'
import { Stack } from '../../src/stack'
import LinkTo from '@storybook/addon-links/react'

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

<Select value={value} options={options} onChange={setValue} />
Expand Down

0 comments on commit 46f7b1c

Please sign in to comment.