Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[navigation] Add default render path when there is basePath #381

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
}

export const WorkbenchApp = ({
basename,

Check failure on line 33 in public/components/app.tsx

View workflow job for this annotation

GitHub Actions / Lint

'basename' is defined but never used. Allowed unused args must match /^_/u
notifications,
http,
navigation,

Check failure on line 36 in public/components/app.tsx

View workflow job for this annotation

GitHub Actions / Lint

'navigation' is defined but never used. Allowed unused args must match /^_/u
chrome,
savedObjects,
dataSourceEnabled,
Expand Down Expand Up @@ -108,6 +108,27 @@
/>
)}
/>
{basePath && (
<Route
exact
path="/"
render={(props) => (
<Main
httpClient={http}
{...props}
setBreadcrumbs={chrome.setBreadcrumbs}
isAccelerationFlyoutOpen={false}
urlDataSource=""
notifications={notifications}
savedObjects={savedObjects}
dataSourceEnabled={dataSourceEnabled}
dataSourceManagement={dataSourceManagement}
dataSourceMDSId={dataSourceId}
setActionMenu={setActionMenu}
/>
)}
/>
)}
</Switch>
</EuiPageBody>
</EuiPage>
Expand Down
Loading