Commit 0fd99798 by Vladislav Lagunov

[gettext] Использование hoist-non-react-statics

parent 16fb6820
...@@ -91,6 +91,7 @@ export function withGettext(...webpackContexts) { ...@@ -91,6 +91,7 @@ export function withGettext(...webpackContexts) {
} }
// @ts-ignore // @ts-ignore
WithTranslations.displayName = 'WithTranslations(' + Component.name + ')'; WithTranslations.displayName = 'WithTranslations(' + Component.name + ')';
require('hoist-non-react-statics')(WithTranslations, Component);
return WithTranslations; return WithTranslations;
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment