fix: repair JSX parse error in PRD page (nested ternary → && conditionals)
Made-with: Cursor
This commit is contained in:
@@ -262,9 +262,8 @@ export default function PRDPage() {
|
||||
<ArchitectureView arch={architecture} />
|
||||
)}
|
||||
|
||||
{/* PRD tab */}
|
||||
{activeTab === "prd" && prd ? (
|
||||
/* ── Finalized PRD view ── */
|
||||
{/* PRD tab — finalized */}
|
||||
{activeTab === "prd" && prd && (
|
||||
<div style={{ maxWidth: 760 }}>
|
||||
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 20 }}>
|
||||
<h3 style={{ fontFamily: "Newsreader, serif", fontSize: "1.2rem", fontWeight: 400, color: "#1a1a1a", margin: 0 }}>
|
||||
@@ -283,7 +282,10 @@ export default function PRDPage() {
|
||||
{prd}
|
||||
</div>
|
||||
</div>
|
||||
) : activeTab === "prd" ? (
|
||||
)}
|
||||
|
||||
{/* PRD tab — section progress (no finalized PRD yet) */}
|
||||
{activeTab === "prd" && !prd && (
|
||||
/* ── Section progress view ── */
|
||||
<div style={{ maxWidth: 680 }}>
|
||||
{/* Progress bar */}
|
||||
|
||||
Reference in New Issue
Block a user