mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Add rarity-level view
This commit is contained in:
parent
2f1bbf83f9
commit
6302587ef8
BIN
src/assets/images/infostand/rarity-level.png
Normal file
BIN
src/assets/images/infostand/rarity-level.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 273 B |
@ -1,7 +1,8 @@
|
||||
@import './avatar-image/AvatarImage';
|
||||
@import './badge-image/BadgeImage';
|
||||
@import './currency-icon/CurrencyIcon.scss';
|
||||
@import './currency-icon/CurrencyIcon';
|
||||
@import './furni-image/FurniImageView';
|
||||
@import './limited-edition/LimitedEdition';
|
||||
@import './pet-image/PetImage';
|
||||
@import './rarity-level/RarityLevelView';
|
||||
@import './room-previewer/RoomPreviewerView';
|
||||
|
12
src/views/shared/rarity-level/RarityLevelView.scss
Normal file
12
src/views/shared/rarity-level/RarityLevelView.scss
Normal 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;
|
||||
}
|
||||
}
|
13
src/views/shared/rarity-level/RarityLevelView.tsx
Normal file
13
src/views/shared/rarity-level/RarityLevelView.tsx
Normal 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>
|
||||
);
|
||||
}
|
4
src/views/shared/rarity-level/RarityLevelView.types.ts
Normal file
4
src/views/shared/rarity-level/RarityLevelView.types.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface RarityLevelViewProps
|
||||
{
|
||||
level: number;
|
||||
}
|
Loading…
Reference in New Issue
Block a user