Fix name and star state when cell is empty

This commit is contained in:
Justin Edmund 2020-09-18 11:27:52 -07:00
parent c8c6e6f813
commit 470f553cf7
4 changed files with 32 additions and 2 deletions

View file

@ -51,4 +51,17 @@
.WeaponGridImage:hover .icon {
color: #555;
}
.WeaponGridMainhand h3,
.WeaponGridMainhand ul {
display: none;
}
.filled h3 {
display: block;
}
.filled ul {
display: flex;
}

View file

@ -32,7 +32,8 @@ function WeaponGridMainhand(props: WeaponGridProps) {
const classes = classnames({
WeaponGridMainhand: true,
'editable': props.editable
'editable': props.editable,
'filled': (props.weapon !== undefined)
})
const weapon = props.weapon

View file

@ -51,4 +51,17 @@
.WeaponGridImage:hover .icon {
color: #555;
}
.WeaponGridUnit h3,
.WeaponGridUnit ul {
display: none;
}
.filled h3 {
display: block;
}
.filled ul {
display: flex;
}

View file

@ -27,10 +27,13 @@ function WeaponGridUnit(props: WeaponGridProps) {
const openModalIfEditable = (props.editable) ? openModal : () => {}
console.log(props.weapon)
const classes = classnames({
WeaponGridUnit: true,
'editable': props.editable
'editable': props.editable,
'filled': (props.weapon !== undefined)
})
console.log(`Classes: ${classes}`)
const weapon = props.weapon