-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: fixes missing router error in storybook
- Loading branch information
1 parent
17e2758
commit 95ba182
Showing
14 changed files
with
1,568 additions
and
1,615 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
import React from "react"; | ||
import { MemoryRouter } from "react-router"; | ||
import ColorDepthSearchParameters from "./ColorDepthSearchParameters"; | ||
|
||
export default { | ||
title: 'ColorDepthSearchParameters', | ||
title: "ColorDepthSearchParameters", | ||
component: ColorDepthSearchParameters, | ||
}; | ||
|
||
function Template(args) { return <ColorDepthSearchParameters {...args} />; } | ||
function Template(args) { | ||
return ( | ||
<MemoryRouter> | ||
<ColorDepthSearchParameters {...args} /> | ||
</MemoryRouter> | ||
); | ||
} | ||
|
||
export const FirstStory = Template.bind({}); | ||
|
||
FirstStory.args = { | ||
match: { | ||
params: { | ||
id: 12345 | ||
} | ||
id: 12345, | ||
}, | ||
}, | ||
history: {}, | ||
location: {} | ||
location: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
import React from "react"; | ||
import { MemoryRouter } from "react-router"; | ||
import MaskDrawing from "./MaskDrawing"; | ||
|
||
export default { | ||
title: 'MaskDrawing', | ||
title: "MaskDrawing", | ||
component: MaskDrawing, | ||
}; | ||
|
||
function Template(args){ return <MaskDrawing {...args} />; } | ||
function Template(args) { | ||
return ( | ||
<MemoryRouter> | ||
<MaskDrawing {...args} /> | ||
</MemoryRouter> | ||
); | ||
} | ||
|
||
export const ImageSelected = Template.bind({}); | ||
|
||
ImageSelected.args = { | ||
onMaskChange: () => console.log('changed'), | ||
imgSrc: '/landing_background.png', | ||
signImage: false | ||
onMaskChange: () => console.log("changed"), | ||
imgSrc: "/landing_background.png", | ||
signImage: false, | ||
}; | ||
|
||
export const NoImageSelected = Template.bind({}); | ||
|
||
NoImageSelected.args = { | ||
onMaskChange: () => console.log('changed'), | ||
onMaskChange: () => console.log("changed"), | ||
}; | ||
|
||
export const ImageSigned = Template.bind({}); | ||
|
||
ImageSigned.args = { | ||
onMaskChange: () => console.log('changed'), | ||
imgSrc: '/landing_background.png', | ||
onMaskChange: () => console.log("changed"), | ||
imgSrc: "/landing_background.png", | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
import React from "react"; | ||
import { MemoryRouter } from "react-router"; | ||
import MaskSelection from "./MaskSelection"; | ||
|
||
export default { | ||
title: 'MaskSelection', | ||
title: "MaskSelection", | ||
component: MaskSelection, | ||
}; | ||
|
||
function Template(args){ return <MaskSelection {...args} />; } | ||
function Template(args) { | ||
return ( | ||
<MemoryRouter> | ||
<MaskSelection {...args} /> | ||
</MemoryRouter> | ||
); | ||
} | ||
|
||
export const FirstStory = Template.bind({}); | ||
|
||
FirstStory.args = { | ||
match: { | ||
params: { | ||
id: 12345 | ||
} | ||
id: 12345, | ||
}, | ||
}, | ||
history: {}, | ||
location: {} | ||
location: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.