Skip to content

Commit

Permalink
Remove extra import
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Mar 2, 2022
1 parent 2dcf929 commit f88a2bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions src/plugins/shared_ux/public/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,3 @@ export const LazyNoDataViewsPage = React.lazy(() =>
* a predefined fallback and error boundary.
*/
export const NoDataViewsPage = withSuspense(LazyNoDataViewsPage);

/**
* The lazily-loaded `NoDataViews` component that is wrapped by the `withSuspense` HOC. Consumers should use `React.Suspense` or the
* `withSuspense` HOC to load this component.
*/
export const LazyNoDataViewsComponent = React.lazy(() =>
import('./empty_state/no_data_views').then(({ NoDataViewsComponent }) => ({
default: NoDataViewsComponent,
}))
);

/**
* A `NoDataViews` component that is wrapped by the `withSuspense` HOC. This component is a pure UI
* component, and has no reference to services.
*/
export const NoDataViewsComponent = withSuspense(LazyNoDataViewsComponent);
1 change: 0 additions & 1 deletion src/plugins/shared_ux/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ export function plugin() {
export type { SharedUXPluginSetup, SharedUXPluginStart } from './types';
export { ExitFullScreenButton, LazyExitFullScreenButton } from './components';
export { NoDataViewsPage, LazyNoDataViewsPage } from './components';
export { NoDataViewsComponent, LazyNoDataViewsComponent } from './components';

0 comments on commit f88a2bf

Please sign in to comment.