Skip to content

Commit

Permalink
change tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Mar 15, 2022
1 parent e414da2 commit 17d8b8e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/plugins/dashboard/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@
],
"server": true,
"ui": true,
"requiredBundles": ["home", "kibanaReact", "kibanaUtils", "presentationUtil"]
}
"requiredBundles": [
"home",
"kibanaReact",
"kibanaUtils",
"presentationUtil",
"sharedUX"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {
SolutionToolbar,
withSuspense,
} from '../../../../presentation_util/public';
import { SolutionToolbarButton as PrimaryActionButton } from '../../../../shared_ux/public';
import { SolutionToolbarButton } from '../../../../shared_ux/public';

export interface DashboardTopNavState {
chromeIsVisible: boolean;
Expand Down Expand Up @@ -589,7 +589,7 @@ export function DashboardTopNav({
<SolutionToolbar isDarkModeEnabled={IS_DARK_THEME}>
{{
primaryActionButton: (
<PrimaryActionButton
<SolutionToolbarButton
label={getCreateVisualizationButtonTitle()}
onClick={createNewVisType(lensAlias)}
iconType="lensApp"
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/dashboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
{ "path": "../charts/tsconfig.json" },
{ "path": "../discover/tsconfig.json" },
{ "path": "../visualizations/tsconfig.json" },
{ "path": "../../../x-pack/plugins/spaces/tsconfig.json" }
{ "path": "../../../x-pack/plugins/spaces/tsconfig.json" },
{ "path": "../shared_ux/tsconfig.json" }
]
}

0 comments on commit 17d8b8e

Please sign in to comment.