create skill tsx and update skill groups to use it. make things scrollable.
This commit is contained in:
1 parent
824ee6e1e8
commit
18298c35d4
13 files changed
+164
-437
No files matched your search
@@ -0,0 +1,31 @@
|
||||
function BaseVal({ skillRank, stat }) {
|
||||
if (skillRank === "---") {
|
||||
return <td>---</td>
|
||||
} else {
|
||||
return (<td>{skillRank + stat}</td>)
|
||||
}
|
||||
}
|
||||
|
||||
export function SkillRow({ skillName, skillRank, stat }) {
|
||||
return (
|
||||
<tr>
|
||||
<td>{skillName}</td>
|
||||
<td>{skillRank}</td>
|
||||
<td>{stat}</td>
|
||||
<BaseVal skillRank={skillRank} stat={stat} />
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
export function SkillHeader({skillGroup}) {
|
||||
return (
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: "70%" }}>{skillGroup}</th>
|
||||
<th style={{ width: "10%" }}>RANKS</th>
|
||||
<th style={{ width: "10%" }}>STAT</th>
|
||||
<th style={{ width: "10%" }}>BASE</th>
|
||||
</tr>
|
||||
</thead>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user