refactor: image src
This commit is contained in:
parent
5ad35f48b9
commit
fc190b13be
|
@ -1,6 +1,3 @@
|
||||||
import {join} from 'path';
|
|
||||||
|
|
||||||
import {Image} from '@avocado/graphics';
|
|
||||||
import {
|
import {
|
||||||
classnames,
|
classnames,
|
||||||
PropTypes,
|
PropTypes,
|
||||||
|
@ -26,7 +23,7 @@ const ItemSlotComponent = (props) => {
|
||||||
if (item) {
|
if (item) {
|
||||||
const backgroundImage = item.imageForSlot();
|
const backgroundImage = item.imageForSlot();
|
||||||
if (backgroundImage) {
|
if (backgroundImage) {
|
||||||
backgroundImageUri = backgroundImage.texture.baseTexture.resource.source.src;
|
backgroundImageUri = backgroundImage.src;
|
||||||
}
|
}
|
||||||
if (qty > 9999) {
|
if (qty > 9999) {
|
||||||
qtyClass = styles.e4;
|
qtyClass = styles.e4;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user