Skip to content

Commit fb7963e

Browse files
committed
Add ID's to talents, passives and consts
1 parent c933dba commit fb7963e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/characters/[name].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ function CharacterSkills({ skills, costTemplates }: { skills: Skills[], costTemp
322322

323323
function Talent({ talent, costTemplates }: { talent: Skill, costTemplates: CostTemplates }) {
324324
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
325-
<div className="flex flex-row items-center">
325+
<div className="flex flex-row items-center" id={urlify(talent.name, false)}>
326326
{talent.icon && <Icon icon={talent} className="rounded-xl w-16 h-16 mr-2" />}
327327
<div className="font-bold">{talent.name}</div>
328328
</div>
@@ -420,7 +420,7 @@ function TalentTable({ table }: { table: (TalentTable | TalentValue)[] }) {
420420

421421
function Passive({ passive }: { passive: Passive }) {
422422
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
423-
<div className="flex flex-row items-center">
423+
<div className="flex flex-row items-center" id={urlify(passive.name, false)}>
424424
{passive.icon && <Icon icon={passive} className="rounded-xl w-16 h-16 mr-2" />}
425425
<div className="font-bold">{passive.name}</div>
426426
</div>
@@ -435,7 +435,7 @@ function Passive({ passive }: { passive: Passive }) {
435435

436436
function Constellation({ c }: { c: Constellation }) {
437437
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
438-
<div className="flex flex-row items-center">
438+
<div className="flex flex-row items-center" id={urlify(c.name, false)}>
439439
{c.icon && <Icon icon={c} className="rounded-xl w-16 h-16 mr-2" />}
440440
<div className="font-bold">{c.name}</div>
441441
</div>

0 commit comments

Comments
 (0)