|
@@ -3,9 +3,9 @@
|
3
|
3
|
import React from 'react';
|
4
|
4
|
|
5
|
5
|
import { InputDialog } from '../../../base/dialog';
|
|
6
|
+import { translate } from '../../../base/i18n';
|
6
|
7
|
import { connect } from '../../../base/redux';
|
7
|
8
|
import { ColorPalette } from '../../../base/styles';
|
8
|
|
-import { defaultSharedVideoLink } from '../../constants';
|
9
|
9
|
import AbstractSharedVideoDialog from '../AbstractSharedVideoDialog';
|
10
|
10
|
|
11
|
11
|
/**
|
|
@@ -41,16 +41,20 @@ class SharedVideoDialog extends AbstractSharedVideoDialog<*> {
|
41
|
41
|
* @inheritdoc
|
42
|
42
|
*/
|
43
|
43
|
render() {
|
|
44
|
+ const { t } = this.props;
|
|
45
|
+
|
44
|
46
|
return (
|
45
|
47
|
<InputDialog
|
46
|
48
|
contentKey = 'dialog.shareVideoTitle'
|
47
|
49
|
onSubmit = { this._onSubmitValue }
|
48
|
50
|
textInputProps = {{
|
49
|
|
- placeholder: defaultSharedVideoLink,
|
|
51
|
+ autoCapitalize: 'none',
|
|
52
|
+ autoCorrect: false,
|
|
53
|
+ placeholder: t('dialog.sharedVideoLinkPlaceholder'),
|
50
|
54
|
placeholderTextColor: ColorPalette.lightGrey
|
51
|
55
|
}} />
|
52
|
56
|
);
|
53
|
57
|
}
|
54
|
58
|
}
|
55
|
59
|
|
56
|
|
-export default connect()(SharedVideoDialog);
|
|
60
|
+export default translate(connect()(SharedVideoDialog));
|