mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
Fix esling
This commit is contained in:
@@ -60,27 +60,20 @@ function RuleItem({ rule, index }: { rule: string | { main: string; sub: (string
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function CS2Rules({ sections }: CS2RulesProps) {
|
export default function CS2Rules({ sections }: CS2RulesProps) {
|
||||||
let ruleCounter = 0;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{sections.map((section, sectionIndex) => {
|
{sections.map((section, sectionIndex) => (
|
||||||
const startIndex = ruleCounter;
|
<div key={sectionIndex} className="mb-8">
|
||||||
ruleCounter += section.rules.length;
|
<h3 className={`${vipnagorgialla.className} font-bold italic text-xl text-[#00A3E0] uppercase mb-4`}>
|
||||||
|
{sectionIndex + 1}) {section.title}
|
||||||
return (
|
</h3>
|
||||||
<div key={sectionIndex} className="mb-8">
|
<ol className="list-none">
|
||||||
<h3 className={`${vipnagorgialla.className} font-bold italic text-xl text-[#00A3E0] uppercase mb-4`}>
|
{section.rules.map((rule, ruleIndex) => (
|
||||||
{sectionIndex + 1}) {section.title}
|
<RuleItem key={ruleIndex} rule={rule} index={ruleIndex + 1} />
|
||||||
</h3>
|
))}
|
||||||
<ol className="list-none">
|
</ol>
|
||||||
{section.rules.map((rule, ruleIndex) => (
|
</div>
|
||||||
<RuleItem key={ruleIndex} rule={rule} index={ruleIndex + 1} />
|
))}
|
||||||
))}
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user