Skip to content

Commit

Permalink
embeddable renderer -> np i18n context
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Robertson committed Apr 16, 2020
1 parent 88973d1 commit b32eb43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import React from 'react';
import ReactDOM from 'react-dom';
import { I18nContext } from 'ui/i18n';
import { CoreStart } from '../../../../../../../src/core/public';
import { StartDeps } from '../../plugin';
import {
Expand All @@ -30,6 +29,8 @@ const embeddablesRegistry: {
} = {};

const renderEmbeddableFactory = (core: CoreStart, plugins: StartDeps) => {
const I18nContext = core.i18n.Context;

return (embeddableObject: IEmbeddable, domNode: HTMLElement) => {
return (
<div
Expand Down

0 comments on commit b32eb43

Please sign in to comment.