add exp to stats view
This commit is contained in:
parent
a7ff05d7c4
commit
ae361aa0ae
3 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
"HP": "生命值",
|
||||
"LEVEL": "等级",
|
||||
"GOLD": "金币",
|
||||
"EXP": "经验",
|
||||
"title": "标题",
|
||||
"notes": "备注",
|
||||
"type": "类型",
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ export default function Index(props: any) {
|
|||
return(
|
||||
<div className="stats">
|
||||
{/* <div id="profile-name">{props.user_data.profile.name}</div> */}
|
||||
{/* {console.log(props)} */}
|
||||
{console.log(props.user_data)}
|
||||
<div className = "substats" id="hp"><i className="material-icons">favorite</i>{t('HP')}: {(props.user_data.stats.hp).toPrecision(3)}</div>
|
||||
<div className = "substats" id="lvl"><i className="material-icons">star</i>{t('LEVEL')}: {props.user_data.stats.lvl}</div>
|
||||
<div className = "substats" id="exp"><i className="material-icons">auto_awesome</i>{t('EXP')}: {props.user_data.stats.exp}</div>
|
||||
<div className = "substats" id="gold"><i className="material-icons">credit_card</i>{t('GOLD')}: {(props.user_data.stats.gp).toPrecision(3)}</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ input[type=checkbox]:focus {
|
|||
}
|
||||
|
||||
.substats {
|
||||
font-size: medium;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
ul {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue