Remove redundant dependencies and fix eslint issues
This commit is contained in:
@@ -13,7 +13,7 @@ interface TouchableHandlerProps {
|
||||
const TouchableHandler: React.FC<TouchableHandlerProps> = ({ id, onPress, children }) => {
|
||||
const handlePress = useCallback(() => {
|
||||
return onPress(id);
|
||||
}, [id]);
|
||||
}, [id, onPress]);
|
||||
|
||||
return (
|
||||
<TouchableOpacity onPress={handlePress}>
|
||||
|
||||
Reference in New Issue
Block a user