Skip to content

Commit de38a4b

Browse files
committed
fix: return uri prop naming
1 parent d3726e4 commit de38a4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/scratch-gui/src/components/library-item/library-item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class LibraryItemComponent extends React.PureComponent {
2929
// we don't have the assets locally and want to directly download them from
3030
// the assets service.
3131
// TODO: Abstract this logic in the `ScratchImage` component itself.
32-
const url = imageSource.rawUrl ?? imageSource.assetServiceUri;
32+
const url = imageSource.uri ?? imageSource.assetServiceUri;
3333

3434
if (this.props.platform === PLATFORM.ANDROID ||
3535
this.props.platform === PLATFORM.DESKTOP) {

packages/scratch-gui/src/components/scratch-image/scratch-image.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ScratchImage.ImageSourcePropType = PropTypes.oneOfType([
138138
assetServiceUri: PropTypes.string.isRequired
139139
}),
140140
PropTypes.shape({
141-
rawUrl: PropTypes.string.isRequired
141+
uri: PropTypes.string.isRequired
142142
})
143143
]);
144144

0 commit comments

Comments
 (0)