File tree Expand file tree Collapse file tree
src/steps/ValidationStep/stories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ValidationStep } from "../ValidationStep"
33import { Providers } from "../../../components/Providers"
44import { defaultTheme } from "../../../ReactSpreadsheetImport"
55import { ModalWrapper } from "../../../components/ModalWrapper"
6+ import { addErrorsAndRunHooks } from "../utils/dataMutations"
67
78export default {
89 title : "Validation Step" ,
@@ -12,11 +13,14 @@ export default {
1213}
1314
1415const file = new File ( [ "" ] , "file.csv" )
16+ const data = await addErrorsAndRunHooks ( editableTableInitialData , mockRsiValues . fields )
1517
16- export const Basic = ( ) => (
17- < Providers theme = { defaultTheme } rsiValues = { mockRsiValues } >
18- < ModalWrapper isOpen = { true } onClose = { ( ) => { } } >
19- < ValidationStep initialData = { editableTableInitialData } file = { file } />
20- </ ModalWrapper >
21- </ Providers >
22- )
18+ export const Basic = ( ) => {
19+ return (
20+ < Providers theme = { defaultTheme } rsiValues = { mockRsiValues } >
21+ < ModalWrapper isOpen = { true } onClose = { ( ) => { } } >
22+ < ValidationStep initialData = { data } file = { file } />
23+ </ ModalWrapper >
24+ </ Providers >
25+ )
26+ }
You can’t perform that action at this time.
0 commit comments