Make TalentSlot's disable prop function again

This commit is contained in:
Melvin Valster
2019-07-17 16:24:47 +02:00
parent 7e6a79a3c5
commit c45847340f
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
# TODO
- [ ] Prevent reducing talent points on a row when it is a dependency for points already spent in the next row
- [ ] Prevent reducing talent points on a talent that is a requirement for another talent with points in it
- [ ] Talent tooltips
+1 -1
View File
@@ -31,7 +31,7 @@ export const TalentSlot: FC<Props> = (props) => {
const { talent, specId, knownTalents, availablePoints } = props
const points = knownTalents.get(talent.id, 0)
const showPoints = points > 0 || availablePoints > 0
const disabled = false // props.disabled || !showPoints || !isAvailable(talent, specId, knownTalents)
const disabled = props.disabled || !showPoints || !isAvailable(talent, specId, knownTalents)
const cn = classNames('talent', {
'talent--disabled': !!disabled,