Skip to content

Commit

Permalink
fix(upload): update pii files
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdickerson committed Dec 10, 2020
1 parent 26bbb57 commit 477f104
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ImageCard/ImageCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImageCard/ImageUploader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImageCard/ImageUploader.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('ImageUploader', () => {
// const { container } = render(<ImageUploader />);

// 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'), {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ exports[`Storybook Snapshot tests and console checks Storyshots Watson IoT/Image
<h2
className="iot--image-uploader-drop-label-text"
>
Drag and drop file here or click to select file
Drag file here or click to upload file
</h2>
<p
className="iot--image-uploader-drop-description-text"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/__tests__/__snapshots__/publicAPI.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12744,7 +12744,7 @@ Map {
"i18n": Object {
"browseImages": "Add from gallery",
"dropContainerDescText": "Max file size is 1MB. Supported file types are: APNG, AVIF, GIF, JPEG, PNG, WebP",
"dropContainerLabelText": "Drag and drop file here or click to select file",
"dropContainerLabelText": "Drag file here or click to upload file",
"errorTitle": "Error: ",
"insertUrl": "Insert from URL",
"loadingDataLabel": "Loading hotspot data",
Expand Down

0 comments on commit 477f104

Please sign in to comment.