aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/SetupAssistant.js
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-07-30 10:54:54 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-30 14:24:54 +0530
commitf4b4416ea52d564bc2dbe543a82084ed98843ccc (patch)
tree7ca6b23571c86458a6b799746c91a7191de02715 /src/components/auth/SetupAssistant.js
parent5.6.1-nightly.8 [skip ci] (diff)
downloadferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz
ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst
ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'src/components/auth/SetupAssistant.js')
-rw-r--r--src/components/auth/SetupAssistant.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/auth/SetupAssistant.js b/src/components/auth/SetupAssistant.js
index e03cf9101..bd9069eb7 100644
--- a/src/components/auth/SetupAssistant.js
+++ b/src/components/auth/SetupAssistant.js
@@ -34,7 +34,7 @@ const messages = defineMessages({
34 }, 34 },
35}); 35});
36 36
37const styles = theme => ({ 37const styles = (theme) => ({
38 root: { 38 root: {
39 width: '500px !important', 39 width: '500px !important',
40 textAlign: 'center', 40 textAlign: 'center',
@@ -161,7 +161,7 @@ class SetupAssistant extends Component {
161 const sanitizedWorkspace = slackWorkspace.trim().replace(/^https?:\/\//, ''); 161 const sanitizedWorkspace = slackWorkspace.trim().replace(/^https?:\/\//, '');
162 162
163 if (sanitizedWorkspace) { 163 if (sanitizedWorkspace) {
164 const index = services.findIndex(s => s.id === SLACK_ID); 164 const index = services.findIndex((s) => s.id === SLACK_ID);
165 165
166 if (index === -1) { 166 if (index === -1) {
167 const newServices = services; 167 const newServices = services;
@@ -215,11 +215,11 @@ class SetupAssistant extends Component {
215 <button 215 <button
216 className={classnames({ 216 className={classnames({
217 [classes.serviceContainer]: true, 217 [classes.serviceContainer]: true,
218 [classes.selected]: this.state.services.findIndex(s => s.id === id) !== -1, 218 [classes.selected]: this.state.services.findIndex((s) => s.id === id) !== -1,
219 })} 219 })}
220 key={id} 220 key={id}
221 onClick={() => { 221 onClick={() => {
222 const index = this.state.services.findIndex(s => s.id === id); 222 const index = this.state.services.findIndex((s) => s.id === id);
223 if (index === -1) { 223 if (index === -1) {
224 if (id === SLACK_ID) { 224 if (id === SLACK_ID) {
225 this.setState({ isSlackModalOpen: true }); 225 this.setState({ isSlackModalOpen: true });
@@ -283,7 +283,7 @@ class SetupAssistant extends Component {
283 <Input 283 <Input
284 suffix=".slack.com" 284 suffix=".slack.com"
285 placeholder="workspace-url" 285 placeholder="workspace-url"
286 onChange={e => this.setState({ slackWorkspace: e.target.value })} 286 onChange={(e) => this.setState({ slackWorkspace: e.target.value })}
287 value={slackWorkspace} 287 value={slackWorkspace}
288 /> 288 />
289 <div className={classes.modalActionContainer}> 289 <div className={classes.modalActionContainer}>