Remove TranslatedText

This commit is contained in:
fragosti
2018-06-05 21:49:14 -07:00
parent 479c18e21f
commit 39570a9663

View File

@@ -39,18 +39,3 @@ Text.defaultProps = {
};
Text.displayName = 'Text';
interface TranslatedProps {
children: Key;
translate: Translate;
deco?: Deco;
}
export type TranslatedTextProps = TextProps & TranslatedProps;
export const TranslatedText: React.StatelessComponent<TranslatedTextProps> = ({
translate,
children,
deco,
...textProps
}) => <Text {...textProps}>{translate.get(children, deco)}</Text>;