File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
components/molecules/Mailto Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,19 @@ import React from 'react'
2
2
3
3
import { ComponentStory , ComponentMeta } from '@storybook/react'
4
4
5
+ import { withRouter } from 'src/hooks/router'
6
+
5
7
import { Mailto , MailtoProps } from './Mailto'
6
8
7
9
export default {
8
10
title : 'molecules/Mailto' ,
9
11
component : Mailto
10
12
} as ComponentMeta < React . ComponentType < MailtoProps > >
11
13
12
- const Template : ComponentStory < React . ComponentType < MailtoProps > > = args => < Mailto { ...args } />
14
+ const Template : ComponentStory < React . ComponentType < MailtoProps > > = args => withRouter ( < Mailto { ...args } /> )
13
15
14
16
export const Primary = Template . bind ( { } )
15
- Primary . args = { }
17
+ Primary . args = {
18
+
19
+ label : 'support'
20
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ import { BrowserRouter } from 'react-router-dom'
4
+
5
+ export const withRouter = ( children : React . ReactNode ) => < BrowserRouter > { children } </ BrowserRouter >
You can’t perform that action at this time.
0 commit comments