Fix a bunch of type errors and add a type-check to the github workflows (#837)
* Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
This commit is contained in:
parent
46c9de7c18
commit
e8843ded5b
23 changed files with 168 additions and 82 deletions
|
@ -38,6 +38,7 @@ import {NavigationProp} from 'lib/routes/types'
|
|||
import {isDesktopWeb} from 'platform/detection'
|
||||
import {pluralize} from 'lib/strings/helpers'
|
||||
import {formatCount} from 'view/com/util/numeric/format'
|
||||
import {isColorMode} from 'state/models/ui/shell'
|
||||
|
||||
type Props = NativeStackScreenProps<CommonNavigatorParams, 'Settings'>
|
||||
export const SettingsScreen = withAuthRequired(
|
||||
|
@ -299,20 +300,26 @@ export const SettingsScreen = withAuthRequired(
|
|||
value="system"
|
||||
label="System"
|
||||
left
|
||||
onChange={(v: string) => store.shell.setColorMode(v)}
|
||||
onChange={(v: string) =>
|
||||
store.shell.setColorMode(isColorMode(v) ? v : 'system')
|
||||
}
|
||||
/>
|
||||
<SelectableBtn
|
||||
current={store.shell.colorMode}
|
||||
value="light"
|
||||
label="Light"
|
||||
onChange={(v: string) => store.shell.setColorMode(v)}
|
||||
onChange={(v: string) =>
|
||||
store.shell.setColorMode(isColorMode(v) ? v : 'system')
|
||||
}
|
||||
/>
|
||||
<SelectableBtn
|
||||
current={store.shell.colorMode}
|
||||
value="dark"
|
||||
label="Dark"
|
||||
right
|
||||
onChange={(v: string) => store.shell.setColorMode(v)}
|
||||
onChange={(v: string) =>
|
||||
store.shell.setColorMode(isColorMode(v) ? v : 'system')
|
||||
}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue