Skip to content

Commit

Permalink
fix #3700 DropZone document (#3701)
Browse files Browse the repository at this point in the history
  • Loading branch information
malanjp authored and sylvhama committed Mar 26, 2021
1 parent 47cbe73 commit 75cd0e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

### Bug fixes

- Updated examples for `DropZone` so they accept all image types ([ #3700 ](https://github.com/Shopify/polaris-react/issues/3700))
- Added focus styles to the dismissiable navigation button in `Frame` ([#3936](https://github.com/Shopify/polaris-react/pull/3936))
- Fixed virtual cursor leaving dialog in `Modal`, `Navigation` and `Sheet` ([#3931](https://github.com/Shopify/polaris-react/pull/3931))
- Simplified output of `Badge`'s css ([#3950](https://github.com/Shopify/polaris-react/pull/3950))
Expand Down
10 changes: 5 additions & 5 deletions src/components/DropZone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function DropZoneExample() {
size="small"
alt={file.name}
source={
validImageTypes.indexOf(file.type) > 0
validImageTypes.includes(file.type)
? window.URL.createObjectURL(file)
: NoteMinor
}
Expand Down Expand Up @@ -220,7 +220,7 @@ function DropZoneExample() {
size="small"
alt={file.name}
source={
validImageTypes.indexOf(file.type) > 0
validImageTypes.includes(file.type)
? window.URL.createObjectURL(file)
: NoteMinor
}
Expand Down Expand Up @@ -264,7 +264,7 @@ function DropZoneWithDropOnPageExample() {
size="small"
alt={file.name}
source={
validImageTypes.indexOf(file.type) > 0
validImageTypes.includes(file.type)
? window.URL.createObjectURL(file)
: NoteMinor
}
Expand Down Expand Up @@ -390,7 +390,7 @@ function NestedDropZoneExample() {
size="small"
alt={file.name}
source={
validImageTypes.indexOf(file.type) > 0
validImageTypes.includes(file.type)
? window.URL.createObjectURL(file)
: NoteMinor
}
Expand Down Expand Up @@ -469,7 +469,7 @@ function DropZoneWithCustomFileDialogExample() {
size="small"
alt={file.name}
source={
validImageTypes.indexOf(file.type) > 0
validImageTypes.indexOf(file.type) > -1
? window.URL.createObjectURL(file)
: NoteMinor
}
Expand Down

0 comments on commit 75cd0e1

Please sign in to comment.