From 477f1043f0e19e98b91558da33814f79a8534da6 Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Thu, 10 Dec 2020 16:02:11 -0600 Subject: [PATCH] fix(upload): update pii files --- src/components/ImageCard/ImageCard.jsx | 2 +- src/components/ImageCard/ImageUploader.jsx | 2 +- src/components/ImageCard/ImageUploader.test.jsx | 2 +- .../ImageCard/__snapshots__/ImageCard.story.storyshot | 2 +- src/utils/__tests__/__snapshots__/publicAPI.test.js.snap | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ImageCard/ImageCard.jsx b/src/components/ImageCard/ImageCard.jsx index 39fedc550f..ce71c1b440 100644 --- a/src/components/ImageCard/ImageCard.jsx +++ b/src/components/ImageCard/ImageCard.jsx @@ -38,7 +38,7 @@ const propTypes = { ...CardPropTypes, ...ImageCardPropTypes }; const defaultProps = { i18n: { loadingDataLabel: 'Loading hotspot data', - dropContainerLabelText: 'Drag and drop file here or click to select file', + dropContainerLabelText: 'Drag file here or click to upload file', dropContainerDescText: 'Max file size is 1MB. Supported file types are: APNG, AVIF, GIF, JPEG, PNG, WebP', uploadByURLCancel: 'Cancel', diff --git a/src/components/ImageCard/ImageUploader.jsx b/src/components/ImageCard/ImageUploader.jsx index bd21512108..410097bc51 100644 --- a/src/components/ImageCard/ImageUploader.jsx +++ b/src/components/ImageCard/ImageUploader.jsx @@ -15,7 +15,7 @@ import { fetchDataURL } from '../../utils/cardUtilityFunctions'; const { iotPrefix } = settings; const i18nDefaults = { - dropContainerLabelText: 'Drag and drop file here or click to select file', + dropContainerLabelText: 'Drag file here or click to upload file', dropContainerDescText: 'Max file size is 1MB. Supported file types are: APNG, AVIF, GIF, JPEG, PNG, WebP', uploadByURLCancel: 'Cancel', diff --git a/src/components/ImageCard/ImageUploader.test.jsx b/src/components/ImageCard/ImageUploader.test.jsx index a1b5738189..d6230aca8d 100644 --- a/src/components/ImageCard/ImageUploader.test.jsx +++ b/src/components/ImageCard/ImageUploader.test.jsx @@ -25,7 +25,7 @@ describe('ImageUploader', () => { // const { container } = render(); // userEvent.click( - // screen.getByText(/Drag and drop file here or click to select file/) + // screen.getByText(/Drag file here or click to upload file/) // ); // // await waitFor(() => expect(screen.getAllByText(/OK/)).toHaveLength(1)); // fireEvent.change(container.querySelector('input'), { diff --git a/src/components/ImageCard/__snapshots__/ImageCard.story.storyshot b/src/components/ImageCard/__snapshots__/ImageCard.story.storyshot index 6f591c43d1..0742faa5aa 100644 --- a/src/components/ImageCard/__snapshots__/ImageCard.story.storyshot +++ b/src/components/ImageCard/__snapshots__/ImageCard.story.storyshot @@ -1298,7 +1298,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Image

- Drag and drop file here or click to select file + Drag file here or click to upload file