aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-04 08:52:48 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-04 08:52:48 -0700
commit3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch)
tree008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/components/auth
parentchore: project maintenance (#1466) (diff)
downloadferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst
ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip
refactor: implement biome (#1467)
- add `biome.json` - add `biome:check` and `biome:check:fix` commands to `package.json` - add `biome:check:fix` command to run as part of `prepare-code` command - install `@biomejs/biome` dependency - add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions` - fix or comment out various reported lint issues
Diffstat (limited to 'src/components/auth')
-rw-r--r--src/components/auth/SetupAssistant.tsx7
-rw-r--r--src/components/auth/Welcome.tsx2
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
42const transition = 42const 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
47const styles = theme => ({ 46const 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}