Procházet zdrojové kódy

[RN] Fix InviteButton translation

master
Bettenbuk Zoltan před 6 roky
rodič
revize
e960002c45

+ 3
- 1
react/features/invite/components/InviteButton.native.js Zobrazit soubor

@@ -3,6 +3,7 @@
3 3
 import { connect } from 'react-redux';
4 4
 import type { Dispatch } from 'redux';
5 5
 
6
+import { translate } from '../../base/i18n';
6 7
 import { AbstractButton } from '../../base/toolbox';
7 8
 import type { AbstractButtonProps } from '../../base/toolbox';
8 9
 import { beginShareRoom } from '../../share-room';
@@ -161,4 +162,5 @@ function _mapStateToProps(state) {
161 162
     };
162 163
 }
163 164
 
164
-export default connect(_mapStateToProps, _mapDispatchToProps)(InviteButton);
165
+export default translate(
166
+    connect(_mapStateToProps, _mapDispatchToProps)(InviteButton));

Načítá se…
Zrušit
Uložit