Skip to content

Commit 891ad0a

Browse files
committed
refactor: simplify empty state rendering in SandboxEventsTable
- Replaced the custom EventsEmptyState component with a direct implementation of TableEmptyState for improved clarity and reduced complexity. - This change enhances the maintainability of the SandboxEventsTable by streamlining the rendering logic for the empty state.
1 parent f7b502c commit 891ad0a

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

  • src/features/dashboard/sandbox/events

src/features/dashboard/sandbox/events/table.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,12 @@ export const SandboxEventsTable = ({
100100
)
101101
})
102102
) : (
103-
<EventsEmptyState />
103+
<TableEmptyState colSpan={3}>
104+
<HistoryIcon className="size-5" />
105+
No events found
106+
</TableEmptyState>
104107
)}
105108
</TableBody>
106109
</Table>
107110
)
108111
}
109-
110-
const EventsEmptyState = () => {
111-
return (
112-
<TableEmptyState colSpan={3}>
113-
<div className="flex items-center gap-2">
114-
<HistoryIcon className="size-5" />
115-
<p className="prose-body-highlight text-fg-tertiary">No events found</p>
116-
</div>
117-
</TableEmptyState>
118-
)
119-
}

0 commit comments

Comments
 (0)