From 2bbd22e91cdb917bdf421d66479e97cf2428391b Mon Sep 17 00:00:00 2001 From: cwm Date: Tue, 26 Dec 2017 13:21:20 -0600 Subject: [PATCH 1/7] Rename settingKey to settingPath (tootsuite pr #6046 & #6098) --- .../glitch/components/setting_text.js | 8 ++--- .../components/column_settings.js | 2 +- .../components/column_settings.js | 8 ++--- .../components/column_settings.js | 32 +++++++++---------- .../components/setting_toggle.js | 10 +++--- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/app/javascript/flavours/glitch/components/setting_text.js b/app/javascript/flavours/glitch/components/setting_text.js index a6dde4c0f1..2c1b70bc34 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 (