🆙 Fix the missing trade icons

This commit is contained in:
duckietm 2024-05-16 07:34:06 +02:00
parent 19693b3b6a
commit 8a9ed64f20
6 changed files with 35 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 B

View File

@ -338,6 +338,27 @@
height: 17px; height: 17px;
} }
&.icon-lock-open {
background: url('@/assets/images/inventory/trading/lock_open.png');
background-repeat: no-repeat;
height: 43px;
width: 29px;
}
&.icon-lock-locked {
background: url('@/assets/images/inventory/trading/lock_locked.png');
background-repeat: no-repeat;
height: 44px;
width: 36px;
}
&.icon-confirmed {
background: url('@/assets/images/inventory/confirmed.png');
background-repeat: no-repeat;
height: 18px;
width: 18px;
}
&.icon-sign-heart { &.icon-sign-heart {
background: url('@/assets/images/icons/sign-heart.png'); background: url('@/assets/images/icons/sign-heart.png');
width: 15px; width: 15px;

View File

@ -1,18 +1,17 @@
import { NotificationBubbleItem, NotificationBubbleType } from '../../../../api'; import { NotificationBubbleItem, NotificationBubbleType } from "../../../../api";
import { NotificationClubGiftBubbleView } from './NotificationClubGiftBubbleView'; import { NotificationClubGiftBubbleView } from "./NotificationClubGiftBubbleView";
import { NotificationDefaultBubbleView } from './NotificationDefaultBubbleView'; import { NotificationDefaultBubbleView } from "./NotificationDefaultBubbleView";
export const GetBubbleLayout = ( item: NotificationBubbleItem, onClose: () => void ) => {
export const GetBubbleLayout = (item: NotificationBubbleItem, onClose: () => void) =>
{
if (!item) return null; if (!item) return null;
const props = { key: item.id, item, onClose }; const props = { key: item.id, item, onClose };
switch(item.notificationType) switch (item.notificationType) {
{
case NotificationBubbleType.CLUBGIFT: case NotificationBubbleType.CLUBGIFT:
return <NotificationClubGiftBubbleView { ...props } /> return <NotificationClubGiftBubbleView {...props} />;
default: default:
return <NotificationDefaultBubbleView { ...props } /> return <NotificationDefaultBubbleView {...props} />;
}
} }
};