Using WH datasets

This commit is contained in:
Melvin Valster
2019-07-16 23:25:41 +02:00
parent 85f9208b4a
commit 7d1b822830
11 changed files with 12679 additions and 62 deletions
+8 -6
View File
@@ -1,27 +1,29 @@
import React from 'react'
import React, { FC } from 'react'
import './TalentSlot.scss'
import { Icon } from './Icon'
import { spells } from '../data/spells'
interface Props {
key: number
talent: Talent
talent: TalentData
/** Points spent */
points: number
onClick?: (e: any) => void
}
export const TalentSlot: React.FC<Props> = (props) => {
export const TalentSlot: FC<Props> = (props) => {
const { talent, points } = props
const requiredPointsSpent = talent.row * 5
return (
<div
className="talent"
title={talent.name}
title={talent.ranks[0].toString()}
data-row={talent.row}
data-col={talent.column}
data-col={talent.col}
onClick={props.onClick}
>
<small>{talent.name}</small>
<Icon name={talent.icon} />
<div className="talent__rank">{points}/{talent.ranks.length}</div>
</div>
)