🆙 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

@ -337,6 +337,27 @@
width: 7px;
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 {
background: url('@/assets/images/icons/sign-heart.png');

View File

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