File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import Icon from '../atoms/Icon'
29
29
import { mdiLoading } from '@mdi/js'
30
30
import BoostHubFeatureIntro from '../molecules/BoostHubFeatureIntro'
31
31
import styled from '../../lib/styled'
32
+ import { osName } from '../../lib/platform'
32
33
33
34
const BoostHubSignInForm = ( ) => {
34
35
const { setPreferences } = usePreferences ( )
@@ -39,7 +40,17 @@ const BoostHubSignInForm = () => {
39
40
'idle'
40
41
)
41
42
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
+ } )
43
54
const { push } = useRouter ( )
44
55
const { sendSignInRequest } = useBoostHub ( )
45
56
You can’t perform that action at this time.
0 commit comments