Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Emily Guo <[email protected]>
  • Loading branch information
LilyCaroline17 committed Sep 4, 2024
1 parent fed389e commit 10ac06c
Show file tree
Hide file tree
Showing 2 changed files with 6,727 additions and 39 deletions.
78 changes: 39 additions & 39 deletions public/pages/TopNQueries/TopNQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,45 +148,45 @@ const TopNQueries = ({ core }: { core: CoreStart }) => {
retrieveQueries(currStart, currEnd);
}, [latencySettings, cpuSettings, memorySettings, currStart, currEnd, retrieveQueries]);

return (
<div style={{ padding: '35px 35px' }}>
<Switch>
<Route exact path={QUERY_INSIGHTS}>
<EuiTitle size="l">
<h1>Query insights - Top N queries</h1>
</EuiTitle>
<EuiSpacer size="l" />
<EuiTabs>{tabs.map(renderTab)}</EuiTabs>
<EuiSpacer size="l" />
<QueryInsights
queries={queries}
loading={loading}
onTimeChange={onTimeChange}
recentlyUsedRanges={recentlyUsedRanges}
currStart={currStart}
currEnd={currEnd}
core={core}
/>
</Route>
<Route exact path={CONFIGURATION}>
<EuiTitle size="l">
<h1>Query insights - Configuration</h1>
</EuiTitle>
<EuiSpacer size="l" />
<EuiTabs>{tabs.map(renderTab)}</EuiTabs>
<EuiSpacer size="l" />
<Configuration
latencySettings={latencySettings}
cpuSettings={cpuSettings}
memorySettings={memorySettings}
configInfo={retrieveConfigInfo}
core={core}
/>
</Route>
<Redirect to={QUERY_INSIGHTS} />
</Switch>
</div>
);
return (
<div style={{ padding: '35px 35px' }}>
<Switch>
<Route exact path={QUERY_INSIGHTS}>
<EuiTitle size="l">
<h1>Query insights - Top N queries</h1>
</EuiTitle>
<EuiSpacer size="l" />
<EuiTabs>{tabs.map(renderTab)}</EuiTabs>
<EuiSpacer size="l" />
<QueryInsights
queries={queries}
loading={loading}
onTimeChange={onTimeChange}
recentlyUsedRanges={recentlyUsedRanges}
currStart={currStart}
currEnd={currEnd}
core={core}
/>
</Route>
<Route exact path={CONFIGURATION}>
<EuiTitle size="l">
<h1>Query insights - Configuration</h1>
</EuiTitle>
<EuiSpacer size="l" />
<EuiTabs>{tabs.map(renderTab)}</EuiTabs>
<EuiSpacer size="l" />
<Configuration
latencySettings={latencySettings}
cpuSettings={cpuSettings}
memorySettings={memorySettings}
configInfo={retrieveConfigInfo}
core={core}
/>
</Route>
<Redirect to={QUERY_INSIGHTS} />
</Switch>
</div>
);
};

// eslint-disable-next-line import/no-default-export
Expand Down
Loading

0 comments on commit 10ac06c

Please sign in to comment.