mirror of
https://github.com/seigler/bl3skills.com
synced 2025-07-27 09:46:10 +00:00
Got it working
This commit is contained in:
parent
3b3e3c9c42
commit
1852bbf12e
49 changed files with 530 additions and 294 deletions
|
@ -21,7 +21,7 @@ export default function Skill ({
|
|||
effect = rank => `Rank ${rank} effect`,
|
||||
type = null,
|
||||
enabled = true,
|
||||
onChange = (oldValue, newValue) => console.log(`Skill from ${oldValue} to ${newValue}`),
|
||||
onChange = (oldValue, newValue) => null,
|
||||
}) {
|
||||
const isAugment = [
|
||||
SKILLS.AUGMENT_CHEVRON,
|
||||
|
@ -60,7 +60,7 @@ export default function Skill ({
|
|||
<div class={style.image}>{getInitials(name)}</div>
|
||||
{ enabled && ranks > 0 && <div class={style.ranks}>{invested}/{ranks}</div>}
|
||||
<div class={style.description}>
|
||||
<h3>{name}</h3>
|
||||
<h3 class={style.skillTitle}>{name}</h3>
|
||||
{text}
|
||||
<div class={style.effect}>
|
||||
{effect(Math.max(invested, 1))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue