feat: implement filter state management and enhance order fetching in BarcodeScreen
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import {FC} from "react";
|
||||
import {StyleSheet, View, Image, TouchableOpacity, GestureResponderEvent} from "react-native";
|
||||
import {GestureResponderEvent, Image, StyleSheet, TouchableOpacity, View} from "react-native";
|
||||
import DText from "../DText/DText";
|
||||
import {RFPercentage} from "react-native-responsive-fontsize";
|
||||
import {responsiveWidth} from "react-native-responsive-dimensions";
|
||||
import {useAppDispatch} from "../../redux/store";
|
||||
import {openFilter} from "../../features/filterSlice/filterSlice";
|
||||
|
||||
type Props = {
|
||||
onPress?: (event: GestureResponderEvent) => void
|
||||
|
||||
};
|
||||
const SortingButton: FC<Props> = ({onPress}) => {
|
||||
const SortingButton: FC = () => {
|
||||
const dispatch = useAppDispatch();
|
||||
const onPress = (event: GestureResponderEvent) => {
|
||||
dispatch(openFilter())
|
||||
}
|
||||
return (
|
||||
<TouchableOpacity onPress={onPress}>
|
||||
<View style={styles.container}>
|
||||
|
||||
Reference in New Issue
Block a user