refactor: image src

This commit is contained in:
cha0s 2022-05-09 19:58:42 -05:00
parent 5ad35f48b9
commit fc190b13be

View File

@ -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;