Skip to content

Commit

Permalink
Update renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Sep 28, 2020
1 parent a676d85 commit 6ff952f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/plugins/vis_type_tagcloud/public/tag_cloud_vis_renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
* under the License.
*/

import React, { lazy, Suspense } from 'react';
import React, { lazy } from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { EuiLoadingSpinner } from '@elastic/eui';

import { VisualizationContainer } from '../../visualizations/public';
import { ExpressionRenderDefinition } from '../../expressions/common/expression_renderers';
Expand All @@ -42,14 +41,12 @@ export const getTagCloudVisRenderer: (

render(
<VisualizationContainer>
<Suspense fallback={<EuiLoadingSpinner />}>
<TagCloudChart
{...config}
colors={colors}
renderComplete={handlers.done}
fireEvent={handlers.event}
/>
</Suspense>
<TagCloudChart
{...config}
colors={colors}
renderComplete={handlers.done}
fireEvent={handlers.event}
/>
</VisualizationContainer>,
domNode
);
Expand Down

0 comments on commit 6ff952f

Please sign in to comment.