Skip to content

Commit

Permalink
fixed requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
stcalica committed Jun 6, 2024
1 parent 92b7537 commit 9a4ad49
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions templates/RequirementsPage/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {requirements} from '@/constants/badgerequirements';
type MainProps = {};

interface Requirement {
badge: string;
age: string;
grade: string;
rank: string;
cost: string;
prerequisites: string;
badge: string | null;
age: string | null;
grade: string | null;
rank: string | null;
cost: string | null;
prerequisites: string | null;
}

const RequirementsTable: React.FC = () => {
Expand All @@ -26,15 +26,15 @@ interface Requirement {
</tr>
</thead>
<tbody>
{requirements.map((r: Requirement, index: number) => (
<tr key={index}>
<td className="border border-n-300 px-4 py-2 text-left">{r.badge}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.age}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.grade}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.rank}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.prerequisites}</td>
</tr>
))}
{requirements.map((r: Requirement, index: number) => (
<tr key={index}>
<td className="border border-n-300 px-4 py-2 text-left">{r.badge}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.age}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.grade}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.rank}</td>
<td className="border border-n-300 px-4 py-2 text-left">{r.prerequisites}</td>
</tr>
))}
</tbody>
</table>
</div>
Expand Down

0 comments on commit 9a4ad49

Please sign in to comment.