make disabled tactics clickable
This commit is contained in:
@@ -86,7 +86,7 @@ function InventoryItem({name, displayName, locked, disabled, newly, showDoc}) {
|
||||
disabled ? "Not available in this level" : ""
|
||||
|
||||
const handleClick = () => {
|
||||
if (!locked && !disabled) {
|
||||
if (!locked) {
|
||||
showDoc()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,17 +29,20 @@
|
||||
padding: .1em .5em;
|
||||
}
|
||||
|
||||
.inventory .item.locked,
|
||||
.inventory .item.disabled {
|
||||
.inventory .item.locked {
|
||||
border: solid 1px #ccc;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.inventory .item.disabled {
|
||||
color: #d92c2c;
|
||||
}
|
||||
|
||||
.inventory .item.new {
|
||||
background-color: rgb(255, 242, 190);
|
||||
}
|
||||
|
||||
.inventory .item:not(.locked):not(.disabled) {
|
||||
.inventory .item:not(.locked) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user