diff options
Diffstat (limited to 'src/components/auth')
-rw-r--r-- | src/components/auth/SetupAssistant.tsx | 7 | ||||
-rw-r--r-- | src/components/auth/Welcome.tsx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/components/auth/SetupAssistant.tsx b/src/components/auth/SetupAssistant.tsx index fdcbba45e..c25495471 100644 --- a/src/components/auth/SetupAssistant.tsx +++ b/src/components/auth/SetupAssistant.tsx | |||
@@ -39,10 +39,9 @@ const messages = defineMessages({ | |||
39 | }, | 39 | }, |
40 | }); | 40 | }); |
41 | 41 | ||
42 | const transition = | 42 | const transition = window?.matchMedia('(prefers-reduced-motion: no-preference)') |
43 | window && window.matchMedia('(prefers-reduced-motion: no-preference)') | 43 | ? 'all 0.25s' |
44 | ? 'all 0.25s' | 44 | : 'none'; |
45 | : 'none'; | ||
46 | 45 | ||
47 | const styles = theme => ({ | 46 | const styles = theme => ({ |
48 | root: { | 47 | root: { |
diff --git a/src/components/auth/Welcome.tsx b/src/components/auth/Welcome.tsx index 259e3c335..c1a2db386 100644 --- a/src/components/auth/Welcome.tsx +++ b/src/components/auth/Welcome.tsx | |||
@@ -91,8 +91,8 @@ class Welcome extends Component<IProps> { | |||
91 | className="settings__hr-sections" | 91 | className="settings__hr-sections" |
92 | style={{ marginTop: 24, marginBottom: 24, borderStyle: 'solid' }} | 92 | style={{ marginTop: 24, marginBottom: 24, borderStyle: 'solid' }} |
93 | /> | 93 | /> |
94 | {/* eslint-disable-next-line react/button-has-type */} | ||
95 | <button | 94 | <button |
95 | type="button" | ||
96 | className="button" | 96 | className="button" |
97 | onClick={this.useLocalServer.bind(this)} | 97 | onClick={this.useLocalServer.bind(this)} |
98 | onKeyDown={noop} | 98 | onKeyDown={noop} |