Skip to content

Commit

Permalink
test: fix rebase, dashbaord structure
Browse files Browse the repository at this point in the history
  • Loading branch information
soleksy-splunk committed Jun 21, 2024
1 parent 7f157ae commit 6970a23
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions ui/src/pages/Dashboard/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ function DashboardPage() {
id="dashboardTable"
style={{ minHeight: '98vh' }}
>
{dataIngestionDef && (
<TabLayout.Panel label="Data ingestion" panelId="dataIngestionTabPanel">
<DataIngestionDashboard dashboardDefinition={dataIngestionDef} />
</TabLayout.Panel>
)}
{errorDef && (
<TabLayout.Panel label="Errors" panelId="errorsTabPanel">
<ErrorDashboard dashboardDefinition={errorDef} />
Expand All @@ -116,23 +121,6 @@ function DashboardPage() {
<CustomDashboard dashboardDefinition={customDef} />
</TabLayout.Panel>
)}

{dataIngestionDef && (
<TabLayout.Panel label="Data ingestion" panelId="dataIngestionTabPanel">
<DataIngestionDashboard dashboardDefinition={dataIngestionDef} />
</TabLayout.Panel>
)}

{errorDef && (
<TabLayout.Panel label="Errors" panelId="errorsTabPanel">
<ErrorDashboard dashboardDefinition={errorDef} />
</TabLayout.Panel>
)}
{customDef && (
<TabLayout.Panel label="Custom" panelId="customTabPanel">
<CustomDashboard dashboardDefinition={customDef} />
</TabLayout.Panel>
)}
</TabLayout>
) : (
// if overview is null then custom tab is the only displayed component
Expand Down

0 comments on commit 6970a23

Please sign in to comment.