Add rarity-level view

This commit is contained in:
Bill 2021-07-11 23:27:39 -04:00
parent 2f1bbf83f9
commit 6302587ef8
5 changed files with 31 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

View File

@ -1,7 +1,8 @@
@import './avatar-image/AvatarImage'; @import './avatar-image/AvatarImage';
@import './badge-image/BadgeImage'; @import './badge-image/BadgeImage';
@import './currency-icon/CurrencyIcon.scss'; @import './currency-icon/CurrencyIcon';
@import './furni-image/FurniImageView'; @import './furni-image/FurniImageView';
@import './limited-edition/LimitedEdition'; @import './limited-edition/LimitedEdition';
@import './pet-image/PetImage'; @import './pet-image/PetImage';
@import './rarity-level/RarityLevelView';
@import './room-previewer/RoomPreviewerView'; @import './room-previewer/RoomPreviewerView';

View File

@ -0,0 +1,12 @@
.nitro-rarity-level {
width: 36px;
height: 28px;
background: url("../../../assets/images/infostand/rarity-level.png");
div {
line-height: 28px;
text-align: center;
color: $black;
font-weight: bold;
}
}

View File

@ -0,0 +1,13 @@
import { FC } from 'react';
import { RarityLevelViewProps } from './RarityLevelView.types';
export const RarityLevelView: FC<RarityLevelViewProps> = props =>
{
const { level = 0 } = props;
return (
<div className="nitro-rarity-level">
<div>{ level }</div>
</div>
);
}

View File

@ -0,0 +1,4 @@
export interface RarityLevelViewProps
{
level: number;
}