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'
2929import { mdiLoading } from '@mdi/js'
3030import BoostHubFeatureIntro from '../molecules/BoostHubFeatureIntro'
3131import styled from '../../lib/styled'
32+ import { osName } from '../../lib/platform'
3233
3334const 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
You can’t perform that action at this time.
0 commit comments