fix types

This commit is contained in:
Samuel Newman
2025-04-27 00:11:13 +03:00
parent dc6029ac01
commit f2f20d81f1
9 changed files with 22 additions and 25 deletions
@@ -239,7 +239,6 @@ const getKey = (label: string, index: number, id?: string) => {
return `${label}_${index}`
}
// @ts-expect-error - web only styles. the only style that should be broken here is `outline`
const styles = StyleSheet.create({
separator: {
height: 1,
@@ -264,7 +263,6 @@ const styles = StyleSheet.create({
justifyContent: 'space-between',
alignItems: 'center',
columnGap: 20,
// @ts-ignore -web
cursor: 'pointer',
paddingTop: 8,
paddingBottom: 8,
@@ -273,6 +271,7 @@ const styles = StyleSheet.create({
borderRadius: 8,
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Liberation Sans", Helvetica, Arial, sans-serif',
// @ts-expect-error web only
outline: 0,
border: 0,
},
@@ -12,9 +12,8 @@ import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {clamp} from '#/lib/numbers'
import {useGate} from '#/lib/statsig/statsig'
import {colors} from '#/lib/styles'
import {isWeb} from '#/platform/detection'
import {useSession} from '#/state/session'
import {useLayoutBreakpoints} from '#/alf'
import {atoms as a, useLayoutBreakpoints} from '#/alf'
export function LoadLatestBtn({
onPress,
@@ -80,7 +79,7 @@ export function LoadLatestBtn({
const styles = StyleSheet.create({
loadLatest: {
zIndex: 20,
position: isWeb ? 'fixed' : 'absolute',
...a.fixed,
left: 18,
borderWidth: StyleSheet.hairlineWidth,
width: 52,