diff --git a/src/hoc.tsx b/src/hoc.tsx index c1fa213..64ed428 100644 --- a/src/hoc.tsx +++ b/src/hoc.tsx @@ -1,5 +1,6 @@ import React from 'react' -import { I18nContext, I18nContextProps } from './context' +import { I18nContextProps } from './context' +import { I18nProvider } from './provider' import { Omit } from './types' export interface WithTranslateProps extends I18nContextProps {} @@ -10,10 +11,12 @@ function withTranslate
( return class WithTranslate extends React.Component
{
static displayName = `withTranslate(${BaseComponent.displayName})`
- static contextType = I18nContext
-
render() {
- return