Files
Jyotisha/frontend/src/components/rectification-house-table.tsx
T
Jesse_Chen c8af18e90a
Independent Staging Quality Gate / validate (push) Failing after 9m39s
Independent Staging Quality Gate / publish (push) Has been skipped
fix(rectification): show the house table and hide the activity fold
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 20:11:51 +08:00

39 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
import type { RectificationHouseTable } from "@/lib/rectification-candidate-result";
export function RectificationHouseTableView({
table,
}: Readonly<{ table: RectificationHouseTable }>) {
return (
<section className="rectification-house-table" aria-label="本命宫位表">
<div className="rectification-house-table__heading">
<strong></strong>
<span>
{table.time} {table.lagna}
</span>
</div>
<div className="markdown-table">
<table>
<thead>
<tr>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
{table.houses.map((house) => (
<tr key={house.house}>
<th scope="row">{house.house}</th>
<td>{house.sign}</td>
<td>{house.occupants.length > 0 ? house.occupants.join("、") : "—"}</td>
</tr>
))}
</tbody>
</table>
</div>
</section>
);
}