summaryrefslogtreecommitdiff
path: root/Settings.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'Settings.jsx')
-rw-r--r--Settings.jsx15
1 files changed, 5 insertions, 10 deletions
diff --git a/Settings.jsx b/Settings.jsx
index b13da96..768cddd 100644
--- a/Settings.jsx
+++ b/Settings.jsx
@@ -1,19 +1,14 @@
const { React } = require('powercord/webpack');
-const {
- Category,
- SwitchItem,
- TextInput,
- RadioGroup,
- SelectInput
-} = require('powercord/components/settings');
+const { SelectInput } = require('powercord/components/settings');
+const { SETTINGS_TIMEZONE } = require('./constants');
const tz = require('./tz');
- module.exports = class Settings extends React.Component {
+module.exports = class Settings extends React.Component {
constructor (props) {
super(props);
this.state = {
- timezone: this.props.getSetting('timezone', 'GMT')
+ timezone: this.props.getSetting(SETTINGS_TIMEZONE, 'GMT')
};
}
@@ -22,7 +17,7 @@ const tz = require('./tz');
<SelectInput
searchable={true}
onChange={(e) => {
- this.props.updateSetting('timezone', e.value);
+ this.props.updateSetting(SETTINGS_TIMEZONE, e.value);
this.setState({ timezone: e.value });
}}
value={this.state.timezone}