Skip to content

Commit 4926909

Browse files
committed
Fix compile
1 parent acd2b62 commit 4926909

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pages/characters/[char].tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function CharacterWebpage({ char, location, characterCurves, cost
102102
<div className="clear-both" />
103103
{isFullCharacter(char) && characterCurves && <Stats char={char} curves={characterCurves} />}
104104
{char.ascensionCosts && costTemplates && <FullAscensionCosts template={char.ascensionCosts} costTemplates={costTemplates} />}
105-
{char.meta && <Meta meta={char.meta} />}
105+
{char.meta && <MetaSection meta={char.meta} />}
106106
{char.media.videos && <Videos videos={char.media.videos} />}
107107
{char.skills && costTemplates && <CharacterSkills skills={char.skills} costTemplates={costTemplates} />}
108108
</div>
@@ -241,7 +241,7 @@ function Stats({ char, curves }: { char: CharacterFull, curves: Record<CurveEnum
241241
</>
242242
}
243243

244-
function Meta({ meta }: { meta: Meta }) {
244+
function MetaSection({ meta }: { meta: Meta }) {
245245
return <div>
246246
<h3 className="text-lg font-bold pt-1" id="meta">Meta:</h3>
247247
<table className={`table-auto ${styles.table} mb-2 w-full`}>
@@ -299,11 +299,11 @@ function CharacterSkills({ skills, costTemplates }: { skills: Skills[], costTemp
299299
</>}
300300
{skill.passive && <>
301301
<h3 className="text-lg font-bold pt-1" id={`passive${i > 0 ? `-${i}` : ""}`}>Passives:</h3>
302-
{skill.passive.map(p => p && <Passive passive={p} key={p.name} />)}
302+
{skill.passive.map(p => p && <PassiveSection passive={p} key={p.name} />)}
303303
</>}
304304
{skill.constellations && <>
305305
<h3 className="text-lg font-bold pt-1" id={`const${i > 0 ? `-${i}` : ""}`}>Constellations:</h3>
306-
{skill.constellations.map(c => c && <Constellation c={c} key={c.name} />)}
306+
{skill.constellations.map(c => c && <ConstellationSection c={c} key={c.name} />)}
307307
</>}
308308
</div>
309309
})}
@@ -324,7 +324,7 @@ function Talent({ talent, costTemplates }: { talent: Skill, costTemplates: CostT
324324
{talent.videomp4 ? <video src={talent.videomp4} autoPlay muted loop playsInline className="w-full" /> : <img src={talent.video} alt="Talent video" className="w-full" />}
325325
</div>}
326326
</div>
327-
{talent.talentTable && <TalentTable table={talent.talentTable} />}
327+
{talent.talentTable && <TalentTableSection table={talent.talentTable} />}
328328
{talent.costs && !Array.isArray(talent.costs) && <TalentCost template={talent.costs} costTemplates={costTemplates} />}
329329
</div>
330330
}
@@ -363,7 +363,7 @@ function TalentCost({ template, costTemplates }: { template: CostTemplate, costT
363363
</>
364364
}
365365

366-
function TalentTable({ table }: { table: (TalentTable | TalentValue)[] }) {
366+
function TalentTableSection({ table }: { table: (TalentTable | TalentValue)[] }) {
367367
const maxLevel = table.reduce((p, c) => Math.max(p, isValueTable(c) ? c.values.length : 1), 1)
368368
const levels = []
369369
for (let i = 0; i < maxLevel; i++)
@@ -405,7 +405,7 @@ function TalentTable({ table }: { table: (TalentTable | TalentValue)[] }) {
405405
</div>
406406
}
407407

408-
function Passive({ passive }: { passive: Passive }) {
408+
function PassiveSection({ passive }: { passive: Passive }) {
409409
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
410410
<div className="flex flex-row items-center" id={urlify(passive.name, false)}>
411411
{passive.icon && <Icon icon={passive} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}
@@ -420,7 +420,7 @@ function Passive({ passive }: { passive: Passive }) {
420420
</div>
421421
}
422422

423-
function Constellation({ c }: { c: Constellation }) {
423+
function ConstellationSection({ c }: { c: Constellation }) {
424424
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
425425
<div className="flex flex-row items-center" id={urlify(c.name, false)}>
426426
{c.icon && <Icon icon={c} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}

0 commit comments

Comments
 (0)