[RN] Fix InviteButton translation

This commit is contained in:
Bettenbuk Zoltan 2019-01-09 15:25:33 +01:00 committed by Zoltan Bettenbuk
parent c503187dc1
commit e960002c45
1 changed files with 3 additions and 1 deletions

View File

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