From 20574717c4b54635a8b757fccce64f2a98614997 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Wed, 29 Sep 2021 08:33:01 +0200 Subject: chore: update various outdated node_modules (#1969) --- uidev/src/stories/input.stories.tsx | 66 +++++++++---------------------------- 1 file changed, 15 insertions(+), 51 deletions(-) (limited to 'uidev/src/stories/input.stories.tsx') diff --git a/uidev/src/stories/input.stories.tsx b/uidev/src/stories/input.stories.tsx index 889539266..c92ebb36a 100644 --- a/uidev/src/stories/input.stories.tsx +++ b/uidev/src/stories/input.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import uuid from 'uuid/v4'; import { Input } from '@meetfranz/forms'; +import { v4 as uuid } from 'uuid'; import { storiesOf } from '../stores/stories'; const defaultProps = () => { @@ -10,7 +10,8 @@ const defaultProps = () => { label: 'Label', id: `test-${id}`, name: `test-${id}`, - onChange: (e: React.ChangeEvent) => console.log('changed event', e), + onChange: (e: React.ChangeEvent) => + console.log('changed event', e), }; }; @@ -21,44 +22,23 @@ const defaultPasswordProps = () => { id: `test-${id}`, name: `test-${id}`, type: 'password', - onChange: (e: React.ChangeEvent) => console.log('changed event', e), + onChange: (e: React.ChangeEvent) => + console.log('changed event', e), }; }; storiesOf('Input') .add('Basic', () => ( - - )) - .add('Without Label', () => ( - - )) - .add('Disabled', () => ( - - )) - .add('With prefix', () => ( - + )) + .add('Without Label', () => ) + .add('Disabled', () => ) + .add('With prefix', () => ) .add('With suffix', () => ( - + )) .add('With pre-suffix', () => ( - + )) .add('With error', () => ( )) .add('Type number with min & max', () => ( - + )); storiesOf('Password') - .add('Basic', () => ( - - )) + .add('Basic', () => ) .add('Show password toggle', () => ( - + )) .add('Score password', () => ( - + )) .add('Score password with error', () => (