Skip to content

Commit 424e3be

Browse files
authored
fix: resolve malformed JSX in AdminHome
Merge PR #23. Resolves the malformed JSX structure in AdminHome by restoring the missing Activity Logs button, removing the duplicated navigation block, and consolidating the section rendering into the intended conditional flow. Fixes #22.
1 parent a9cea9f commit 424e3be

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

frontend/src/components/admin/AdminHome.jsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,18 @@ const AdminHome = () => {
126126
>
127127
Payments
128128
</Button>
129-
</nav>
130-
131-
{activeSection === "payments" ? (
132-
<PaymentRecords />
133-
variant={
134-
activeSection === "activity-logs" ? "contained" : "outlined"
135-
}
129+
<Button
130+
variant={activeSection === "activity-logs" ? "contained" : "outlined"}
136131
color="inherit"
137132
onClick={() => setActiveSection("activity-logs")}
138133
>
139134
Activity Logs
140135
</Button>
141136
</nav>
142137

143-
{activeSection === "activity-logs" ? (
138+
{activeSection === "payments" ? (
139+
<PaymentRecords />
140+
) : activeSection === "activity-logs" ? (
144141
<ActivityLogs />
145142
) : (
146143
<section style={{ padding: "20px" }} aria-labelledby="users-title">

0 commit comments

Comments
 (0)