Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 Update scplus-shared-component version #523

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"react-text-mask": "^5.4.3",
"react-weekly-schedule": "0.0.0-development",
"react-window": "^1.8.5",
"scplus-shared-components": "https://npm-public.selectquotelabs.com/scplus-shared-components/7.7.2",
"scplus-shared-components": "https://npm-public.selectquotelabs.com/scplus-shared-components/7.7.3",
"text-mask-addons": "^3.8.0",
"use-debounce": "^6.0.0"
},
Expand Down
26 changes: 7 additions & 19 deletions stories/SQFormGuidedWorkflow.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ const Template = () => {
outcome: '',
notes: ''
},
onSubmit: async (values, _formikBag, context) => {
onSubmit: async (values, _formikBag, _context) => {
await sleep(3000); // Simulate API call to see loading spinner
console.log(values);
console.log(context);
if (values.outcome === 'not-interested') {
setIsModuleDisabled(true);
} else {
Expand Down Expand Up @@ -92,10 +90,7 @@ const Template = () => {
outcome: '',
notes: ''
},
onSubmit: async (values, _formikBag, context) => {
console.log(values);
console.log(context);
},
onSubmit: async (_values, _formikBag, _context) => {},
validationSchema: {
outcome: Yup.string().required(),
notes: Yup.string()
Expand Down Expand Up @@ -139,10 +134,7 @@ const Template = () => {
outcome: '',
notes: ''
},
onSubmit: async (values, _formikBag, context) => {
console.log(values);
console.log(context);
},
onSubmit: async (_values, _formikBag, _context) => {},
validationSchema: {
outcome: Yup.string().required(),
notes: Yup.string()
Expand Down Expand Up @@ -179,7 +171,7 @@ const Template = () => {
isStrictMode={false}
taskModules={taskModules}
onError={error => {
console.error(error);
window.alert(error);
}}
/>
</ExpandingCard>
Expand All @@ -202,9 +194,7 @@ const TestTemplate = args => {
firstText: '',
secondText: ''
},
onSubmit: async values => {
console.log(JSON.stringify(values));
},
onSubmit: async _values => {},
validationSchema: {
firstText: Yup.string().required(),
secondText: Yup.string()
Expand Down Expand Up @@ -233,9 +223,7 @@ const TestTemplate = args => {
outcome: '',
notes: ''
},
onSubmit: async values => {
console.log(JSON.stringify(values));
}
onSubmit: async _values => {}
},
scriptedTextProps: {
text: 'This is some more text',
Expand All @@ -261,7 +249,7 @@ const TestTemplate = args => {
{...rest}
mainTitle={mainTitle}
onError={error => {
console.error(error);
window.alert(error);
}}
taskModules={taskModules}
/>
Expand Down