From 01dc15faffc2d196ff97e0812c3da4709b05cf31 Mon Sep 17 00:00:00 2001 From: Hana Worku Date: Tue, 18 Jul 2023 11:12:06 -0500 Subject: [PATCH] Clear yarn lint of console warnings --- .../src/components/FileUpload/FileUpload.stories.tsx | 12 ++++++------ .../Form/FieldCheckbox/FieldCheckbox.stories.tsx | 2 +- .../Form/FieldDropdown/FieldDropdown.stories.tsx | 2 +- .../Form/FieldRadio/FieldRadio.stories.tsx | 2 +- .../Form/FieldTextInput/FieldTextInput.stories.tsx | 2 +- .../Form/FieldTextarea/FieldTextarea.stories.tsx | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/services/app-web/src/components/FileUpload/FileUpload.stories.tsx b/services/app-web/src/components/FileUpload/FileUpload.stories.tsx index 8b6b9434ff..80a2029de3 100644 --- a/services/app-web/src/components/FileUpload/FileUpload.stories.tsx +++ b/services/app-web/src/components/FileUpload/FileUpload.stories.tsx @@ -26,7 +26,7 @@ export const DemoListUploadSuccess = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) @@ -50,7 +50,7 @@ export const DemoTableUploadSuccess = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) @@ -74,7 +74,7 @@ export const DemoListUploadFailure = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) @@ -98,7 +98,7 @@ export const DemoTableUploadFailure = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) @@ -122,7 +122,7 @@ export const DemoListScanFailure = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) @@ -146,7 +146,7 @@ export const DemoTableScanFailure = (): React.ReactElement => { await fakeRequest(true, resolveData) return }} - onFileItemsUpdate={() => console.log('Async load complete')} + onFileItemsUpdate={() => console.info('Async load complete')} isContractOnly={false} /> ) diff --git a/services/app-web/src/components/Form/FieldCheckbox/FieldCheckbox.stories.tsx b/services/app-web/src/components/Form/FieldCheckbox/FieldCheckbox.stories.tsx index ed5c30386b..3c4c55d1f8 100644 --- a/services/app-web/src/components/Form/FieldCheckbox/FieldCheckbox.stories.tsx +++ b/services/app-web/src/components/Form/FieldCheckbox/FieldCheckbox.stories.tsx @@ -10,7 +10,7 @@ export default { const Template: Story = (args) => ( console.log('submitted')} + onSubmit={(e) => console.info('submitted')} > diff --git a/services/app-web/src/components/Form/FieldDropdown/FieldDropdown.stories.tsx b/services/app-web/src/components/Form/FieldDropdown/FieldDropdown.stories.tsx index b9479cc2ba..b239477964 100644 --- a/services/app-web/src/components/Form/FieldDropdown/FieldDropdown.stories.tsx +++ b/services/app-web/src/components/Form/FieldDropdown/FieldDropdown.stories.tsx @@ -16,7 +16,7 @@ const Template: Story = (args) => ( initialValues={{ program: '' }} validationSchema={schema} validateOnMount={true} - onSubmit={(e) => console.log('submitted')} + onSubmit={(e) => console.info('submitted')} > diff --git a/services/app-web/src/components/Form/FieldRadio/FieldRadio.stories.tsx b/services/app-web/src/components/Form/FieldRadio/FieldRadio.stories.tsx index efa171c147..3b0023cfa9 100644 --- a/services/app-web/src/components/Form/FieldRadio/FieldRadio.stories.tsx +++ b/services/app-web/src/components/Form/FieldRadio/FieldRadio.stories.tsx @@ -10,7 +10,7 @@ export default { const Template: Story = (args) => ( console.log('submitted')} + onSubmit={(e) => console.info('submitted')} > diff --git a/services/app-web/src/components/Form/FieldTextInput/FieldTextInput.stories.tsx b/services/app-web/src/components/Form/FieldTextInput/FieldTextInput.stories.tsx index 2c5d4d0716..7f3cef6d73 100644 --- a/services/app-web/src/components/Form/FieldTextInput/FieldTextInput.stories.tsx +++ b/services/app-web/src/components/Form/FieldTextInput/FieldTextInput.stories.tsx @@ -18,7 +18,7 @@ const Template: Story = (args) => ( initialValues={{ submissionDescription: '' }} validationSchema={schema} validateOnMount={true} - onSubmit={(e) => console.log('submitted')} + onSubmit={(e) => console.info('submitted')} > diff --git a/services/app-web/src/components/Form/FieldTextarea/FieldTextarea.stories.tsx b/services/app-web/src/components/Form/FieldTextarea/FieldTextarea.stories.tsx index 5ce3417bcb..f73ed76a73 100644 --- a/services/app-web/src/components/Form/FieldTextarea/FieldTextarea.stories.tsx +++ b/services/app-web/src/components/Form/FieldTextarea/FieldTextarea.stories.tsx @@ -19,7 +19,7 @@ const Template: Story = (args) => ( initialValues={{ submissionDescription: '' }} validationSchema={schema} validateOnMount={true} - onSubmit={(e) => console.log('submitted')} + onSubmit={(e) => console.info('submitted')} >