Skip to content

Commit 3ceba18

Browse files
committed
[DDW-1142] Chore: Fixes TSLint errors on props
Fixes TsLint errors on passing props to the storybook components.
1 parent 300a7df commit 3ceba18

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Updated trezor-connect to v9 ([PR 3038](https://github.com/input-output-hk/daedalus/pull/3038))
1010
- Added analytics data collection ([PR 2927](https://github.com/input-output-hk/daedalus/pull/2927), [PR 2989](https://github.com/input-output-hk/daedalus/pull/2989), [PR 3003](https://github.com/input-output-hk/daedalus/pull/3003), [PR 3028](https://github.com/input-output-hk/daedalus/pull/3028))
1111
- Updated LedgerJS to 5.1.0 ([PR 3036](https://github.com/input-output-hk/daedalus/pull/3036))
12+
- Fix locale in Storybook ([PR 3042](https://github.com/input-output-hk/daedalus/pull/3042))
1213

1314
## 5.0.0
1415

storybook/stories/common/Widgets.stories.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ storiesOf('Common / Widgets', module)
146146
</div>
147147
</div>
148148
))
149-
// @ts-ignore ts-migrate(2345) FIXME: Argument of type '(props: { locale: string;}) =... Remove this comment to see the full error message
150-
.add('BigButtonForDialogs', (_, props: { locale: string }) => (
149+
.add('BigButtonForDialogs', (_, props) => (
151150
<div>
152151
<div
153152
style={{
@@ -201,12 +200,10 @@ storiesOf('Common / Widgets', module)
201200
</div>
202201
))
203202
.add('TinySwitch', () => <TinySwitch />)
204-
// @ts-ignore ts-migrate(2345) FIXME: Argument of type '(props: { locale: string;}) =... Remove this comment to see the full error message
205-
.add('TinySwitch - short label', (_, props: { locale: string }) => (
203+
.add('TinySwitch - short label', (_, props) => (
206204
<TinySwitch label={intl[props.locale].formatMessage(messages.save)} />
207205
))
208-
// @ts-ignore ts-migrate(2345) FIXME: Argument of type '(props: { locale: string;}) =... Remove this comment to see the full error message
209-
.add('ButtonLink', (_, props: { locale: string }) => (
206+
.add('ButtonLink', (_, props) => (
210207
<ButtonLink
211208
label={intl[props.locale].formatMessage(messages.save)}
212209
// @ts-ignore ts-migrate(2769) FIXME: No overload matches this call.

0 commit comments

Comments
 (0)