Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 21, 2021
1 parent efb9a7f commit 00d88ff
Show file tree
Hide file tree
Showing 9 changed files with 641 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
EuiCopy,
EuiButton,
EuiLoadingSpinner,
EuiErrorBoundary,
} from '@elastic/eui';

import { FormattedMessage } from '@kbn/i18n/react';
Expand Down Expand Up @@ -100,13 +101,15 @@ export function Instruction({

{LazyCustomComponent && (
<Suspense fallback={<EuiLoadingSpinner />}>
<LazyCustomComponent
basePath={getBasePath()}
isDarkTheme={uiSettings.get('theme:darkMode')}
http={http}
variantId={variantId}
isCloudEnabled={isCloudEnabled}
/>
<EuiErrorBoundary>
<LazyCustomComponent
basePath={getBasePath()}
isDarkTheme={uiSettings.get('theme:darkMode')}
http={http}
variantId={variantId}
isCloudEnabled={isCloudEnabled}
/>
</EuiErrorBoundary>
</Suspense>
)}

Expand Down
Loading

0 comments on commit 00d88ff

Please sign in to comment.