File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
src/app/components/AppBar Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 46
46
"eslint-plugin-react" : " ^7.7.0" ,
47
47
"husky" : " ^0.14.3" ,
48
48
"lint-staged" : " ^7.0.4" ,
49
- "prettier" : " ^1.12.1"
49
+ "prettier" : " ^1.12.1" ,
50
+ "storybook-react-router" : " 1.0.1"
50
51
}
51
52
}
Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ import React from 'react';
3
3
import { storiesOf } from '@storybook/react' ;
4
4
import { action } from '@storybook/addon-actions' ;
5
5
import { linkTo } from '@storybook/addon-links' ;
6
+ import StoryRouter from 'storybook-react-router' ;
6
7
7
- import { AppBar } from './AppBar' ;
8
+ import AppBar from './AppBar' ;
8
9
9
10
storiesOf ( 'AppBar' , module )
11
+ . addDecorator ( StoryRouter ( ) )
10
12
. add ( 'non authenthicated' , ( ) => < AppBar /> )
11
13
. add ( 'authenthicated' , ( ) => (
12
14
< AppBar auth = { { user : { name : 'Alejandro' } } } />
Original file line number Diff line number Diff line change @@ -8572,6 +8572,12 @@ stifle@^1.0.2:
8572
8572
version "1.0.4"
8573
8573
resolved "https://registry.yarnpkg.com/stifle/-/stifle-1.0.4.tgz#8b3bcdf52419b0a9c79e35adadce50123c1d8e99"
8574
8574
8575
+ storybook-react-router@1.0.1 :
8576
+ version "1.0.1"
8577
+ resolved "https://registry.yarnpkg.com/storybook-react-router/-/storybook-react-router-1.0.1.tgz#a33af1cb0c16f0e755f420296352c8f8709cb674"
8578
+ dependencies :
8579
+ prop-types "^15.6.1"
8580
+
8575
8581
stream-browserify@^2.0.1 :
8576
8582
version "2.0.1"
8577
8583
resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db"
You can’t perform that action at this time.
0 commit comments