ref(ui-components) Replace livestream input (#11997)
This commit is contained in:
parent
fb20786b65
commit
b2396ff809
|
@ -12,7 +12,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@amplitude/react-native": "2.7.0",
|
"@amplitude/react-native": "2.7.0",
|
||||||
"@atlaskit/dropdown-menu": "10.1.2",
|
"@atlaskit/dropdown-menu": "10.1.2",
|
||||||
"@atlaskit/field-text": "11.0.4",
|
|
||||||
"@atlaskit/field-text-area": "8.0.4",
|
"@atlaskit/field-text-area": "8.0.4",
|
||||||
"@atlaskit/flag": "14.1.0",
|
"@atlaskit/flag": "14.1.0",
|
||||||
"@atlaskit/icon": "21.2.0",
|
"@atlaskit/icon": "21.2.0",
|
||||||
|
@ -528,21 +527,6 @@
|
||||||
"react": "^16.8.0"
|
"react": "^16.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@atlaskit/field-text": {
|
|
||||||
"version": "11.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@atlaskit/field-text/-/field-text-11.0.4.tgz",
|
|
||||||
"integrity": "sha512-unm6oVzrzejXnbv0gH3j/oaV4UeA+j+bT2MmsOw0hmUMy3hjd4AChqB/ob604F+iuU5ETd/I7DzoEm+brpOg2Q==",
|
|
||||||
"dependencies": {
|
|
||||||
"@atlaskit/analytics-next": "^8.0.0",
|
|
||||||
"@atlaskit/field-base": "^15.0.0",
|
|
||||||
"@atlaskit/theme": "^11.0.0",
|
|
||||||
"@babel/runtime": "^7.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^16.8.0",
|
|
||||||
"styled-components": "^3.2.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@atlaskit/field-text-area": {
|
"node_modules/@atlaskit/field-text-area": {
|
||||||
"version": "8.0.4",
|
"version": "8.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/@atlaskit/field-text-area/-/field-text-area-8.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@atlaskit/field-text-area/-/field-text-area-8.0.4.tgz",
|
||||||
|
@ -20299,17 +20283,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@atlaskit/field-text": {
|
|
||||||
"version": "11.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@atlaskit/field-text/-/field-text-11.0.4.tgz",
|
|
||||||
"integrity": "sha512-unm6oVzrzejXnbv0gH3j/oaV4UeA+j+bT2MmsOw0hmUMy3hjd4AChqB/ob604F+iuU5ETd/I7DzoEm+brpOg2Q==",
|
|
||||||
"requires": {
|
|
||||||
"@atlaskit/analytics-next": "^8.0.0",
|
|
||||||
"@atlaskit/field-base": "^15.0.0",
|
|
||||||
"@atlaskit/theme": "^11.0.0",
|
|
||||||
"@babel/runtime": "^7.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@atlaskit/field-text-area": {
|
"@atlaskit/field-text-area": {
|
||||||
"version": "8.0.4",
|
"version": "8.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/@atlaskit/field-text-area/-/field-text-area-8.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@atlaskit/field-text-area/-/field-text-area-8.0.4.tgz",
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@amplitude/react-native": "2.7.0",
|
"@amplitude/react-native": "2.7.0",
|
||||||
"@atlaskit/dropdown-menu": "10.1.2",
|
"@atlaskit/dropdown-menu": "10.1.2",
|
||||||
"@atlaskit/field-text": "11.0.4",
|
|
||||||
"@atlaskit/field-text-area": "8.0.4",
|
"@atlaskit/field-text-area": "8.0.4",
|
||||||
"@atlaskit/flag": "14.1.0",
|
"@atlaskit/flag": "14.1.0",
|
||||||
"@atlaskit/icon": "21.2.0",
|
"@atlaskit/icon": "21.2.0",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { FieldTextStateless } from '@atlaskit/field-text';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { translate } from '../../../../base/i18n';
|
import { translate } from '../../../../base/i18n';
|
||||||
import { connect } from '../../../../base/redux';
|
import { connect } from '../../../../base/redux';
|
||||||
|
import Input from '../../../../base/ui/components/web/Input';
|
||||||
import AbstractStreamKeyForm, {
|
import AbstractStreamKeyForm, {
|
||||||
type Props, _mapStateToProps
|
type Props, _mapStateToProps
|
||||||
} from '../AbstractStreamKeyForm';
|
} from '../AbstractStreamKeyForm';
|
||||||
|
@ -41,18 +41,14 @@ class StreamKeyForm extends AbstractStreamKeyForm<Props> {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className = 'stream-key-form'>
|
<div className = 'stream-key-form'>
|
||||||
<FieldTextStateless
|
<Input
|
||||||
autoFocus = { true }
|
autoFocus = { true }
|
||||||
compact = { true }
|
|
||||||
isSpellCheckEnabled = { false }
|
|
||||||
label = { t('dialog.streamKey') }
|
label = { t('dialog.streamKey') }
|
||||||
name = 'streamId'
|
name = 'streamId'
|
||||||
okDisabled = { !value }
|
|
||||||
onChange = { this._onInputChange }
|
onChange = { this._onInputChange }
|
||||||
placeholder = { t('liveStreaming.enterStreamKey') }
|
placeholder = { t('liveStreaming.enterStreamKey') }
|
||||||
shouldFitContainer = { true }
|
|
||||||
type = 'text'
|
type = 'text'
|
||||||
value = { this.props.value } />
|
value = { value } />
|
||||||
<div className = 'form-footer'>
|
<div className = 'form-footer'>
|
||||||
<div className = 'help-container'>
|
<div className = 'help-container'>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue