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} />
|
<ArchitectureView arch={architecture} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* PRD tab */}
|
{/* PRD tab — finalized */}
|
||||||
{activeTab === "prd" && prd ? (
|
{activeTab === "prd" && prd && (
|
||||||
/* ── Finalized PRD view ── */
|
|
||||||
<div style={{ maxWidth: 760 }}>
|
<div style={{ maxWidth: 760 }}>
|
||||||
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 20 }}>
|
<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 }}>
|
<h3 style={{ fontFamily: "Newsreader, serif", fontSize: "1.2rem", fontWeight: 400, color: "#1a1a1a", margin: 0 }}>
|
||||||
@@ -283,7 +282,10 @@ export default function PRDPage() {
|
|||||||
{prd}
|
{prd}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : activeTab === "prd" ? (
|
)}
|
||||||
|
|
||||||
|
{/* PRD tab — section progress (no finalized PRD yet) */}
|
||||||
|
{activeTab === "prd" && !prd && (
|
||||||
/* ── Section progress view ── */
|
/* ── Section progress view ── */
|
||||||
<div style={{ maxWidth: 680 }}>
|
<div style={{ maxWidth: 680 }}>
|
||||||
{/* Progress bar */}
|
{/* Progress bar */}
|
||||||
|
|||||||
Reference in New Issue
Block a user