diff options
author | cwm <chriswmartin@protonmail.com> | 2017-12-26 13:21:20 -0600 |
---|---|---|
committer | cwm <chriswmartin@protonmail.com> | 2017-12-26 13:21:20 -0600 |
commit | 2bbd22e91cdb917bdf421d66479e97cf2428391b (patch) | |
tree | 55fd9bc1dd2e4bb382ea2f6e440117ece457c7c0 /app/javascript/flavours/glitch/components | |
parent | bed13f22e24763620f2c2d3bcbfe15937336fa88 (diff) |
Rename settingKey to settingPath (tootsuite pr #6046 & #6098)
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/setting_text.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/components/setting_text.js b/app/javascript/flavours/glitch/components/setting_text.js index a6dde4c0f..2c1b70bc3 100644 --- a/app/javascript/flavours/glitch/components/setting_text.js +++ b/app/javascript/flavours/glitch/components/setting_text.js @@ -6,24 +6,24 @@ export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, - settingKey: PropTypes.array.isRequired, + settingPath: PropTypes.array.isRequired, label: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, }; handleChange = (e) => { - this.props.onChange(this.props.settingKey, e.target.value); + this.props.onChange(this.props.settingPath, e.target.value); } render () { - const { settings, settingKey, label } = this.props; + const { settings, settingPath, label } = this.props; return ( <label> <span style={{ display: 'none' }}>{label}</span> <input className='setting-text' - value={settings.getIn(settingKey)} + value={settings.getIn(settingPath)} onChange={this.handleChange} placeholder={label} /> |