diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-09-23 16:35:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 16:35:16 +0100 |
commit | 443f3a64069f081764c2f49578108a9570e8e834 (patch) | |
tree | af11a88a6772d33cc202503e05e478312a39ab46 /src/view/com/pager/TabBar.tsx | |
parent | 5e333d4dfcc434f76fd54def2f965f54e112257b (diff) | |
download | voidsky-443f3a64069f081764c2f49578108a9570e8e834.tar.zst |
Use pressable for video controls (#5452)
* use pressable for video controls * add `as any` to preexisiting bad type * stop mutating prop
Diffstat (limited to 'src/view/com/pager/TabBar.tsx')
-rw-r--r-- | src/view/com/pager/TabBar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/pager/TabBar.tsx b/src/view/com/pager/TabBar.tsx index 59bb77e36..d36d794b7 100644 --- a/src/view/com/pager/TabBar.tsx +++ b/src/view/com/pager/TabBar.tsx @@ -1,9 +1,9 @@ import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react' import {LayoutChangeEvent, ScrollView, StyleSheet, View} from 'react-native' +import {usePalette} from '#/lib/hooks/usePalette' +import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {isNative} from '#/platform/detection' -import {usePalette} from 'lib/hooks/usePalette' -import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {PressableWithHover} from '../util/PressableWithHover' import {Text} from '../util/text/Text' import {DraggableScrollView} from './DraggableScrollView' @@ -131,7 +131,7 @@ export function TabBar({ <PressableWithHover testID={`${testID}-selector-${i}`} key={`${item}-${i}`} - ref={node => (itemRefs.current[i] = node)} + ref={node => (itemRefs.current[i] = node as any)} onLayout={e => onItemLayout(e, i)} style={styles.item} hoverStyle={pal.viewLight} |