feat: implement filter state management and enhance order fetching in BarcodeScreen

This commit is contained in:
2025-06-12 22:32:10 +03:00
parent 43ddf76827
commit 2d5d04987b
23 changed files with 245 additions and 290 deletions

View File

@@ -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}>