diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-06 12:49:14 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-06 12:49:14 +0800 |
commit | 39570a9663abae56b0220745306386197fae65c1 (patch) | |
tree | 6ae24f2380ac200dfbcef3220f7574ef9402d7f4 /packages/website | |
parent | 479c18e21f86870072abca46167b0fca4cf72dac (diff) | |
download | dexon-sol-tools-39570a9663abae56b0220745306386197fae65c1.tar.gz dexon-sol-tools-39570a9663abae56b0220745306386197fae65c1.tar.zst dexon-sol-tools-39570a9663abae56b0220745306386197fae65c1.zip |
Remove TranslatedText
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/ui/text.tsx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/website/ts/components/ui/text.tsx b/packages/website/ts/components/ui/text.tsx index 259365618..99bf89966 100644 --- a/packages/website/ts/components/ui/text.tsx +++ b/packages/website/ts/components/ui/text.tsx @@ -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>; |