Make TalentSlot's disable prop function again
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user