feat: implement filter state management and enhance order fetching in BarcodeScreen
This commit is contained in:
19
src/components/Modals/SortingModal/SortingButton.tsx
Normal file
19
src/components/Modals/SortingModal/SortingButton.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import {View} from "react-native";
|
||||
import {RadioButton} from "react-native-paper";
|
||||
import DText from "../../DText/DText";
|
||||
import {FC} from "react";
|
||||
|
||||
type Props = {
|
||||
value: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
const SortingButton: FC<Props> = ({value, label}) => {
|
||||
return (<View style={{display: "flex", flexDirection: "row", alignItems: "center"}}>
|
||||
<RadioButton value={value}/>
|
||||
<DText>{label}</DText>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export default SortingButton;
|
||||
Reference in New Issue
Block a user