Skip to content

Commit 3e04be4

Browse files
committed
Show boosthub login code input when using linux
1 parent 64438e7 commit 3e04be4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/organisms/BoostHubSignInForm.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import Icon from '../atoms/Icon'
2929
import { mdiLoading } from '@mdi/js'
3030
import BoostHubFeatureIntro from '../molecules/BoostHubFeatureIntro'
3131
import styled from '../../lib/styled'
32+
import { osName } from '../../lib/platform'
3233

3334
const BoostHubSignInForm = () => {
3435
const { setPreferences } = usePreferences()
@@ -39,7 +40,17 @@ const BoostHubSignInForm = () => {
3940
'idle'
4041
)
4142
const [errorMessage, setErrorMessage] = useState<string | null>(null)
42-
const [manualFormOpened, setManualFormOpened] = useState(false)
43+
const [manualFormOpened, setManualFormOpened] = useState(() => {
44+
switch (osName) {
45+
case 'macos':
46+
case 'windows':
47+
return false
48+
case 'linux':
49+
case 'unix':
50+
default:
51+
return true
52+
}
53+
})
4354
const { push } = useRouter()
4455
const { sendSignInRequest } = useBoostHub()
4556

0 commit comments

Comments
 (0)