minor features
This commit is contained in:
@@ -126,7 +126,7 @@ const SortingModal = () => {
|
||||
{/*</View>*/}
|
||||
|
||||
<ShippingWarehouseSelect/>
|
||||
<CitySelect/>
|
||||
{/*<CitySelect/>*/}
|
||||
</View>
|
||||
|
||||
{/*<BasicButton onPress={() => setShowShipmentPicker(oldValue => !oldValue)}*/}
|
||||
|
||||
@@ -7,7 +7,7 @@ import SelectProductModal from "../Modals/SelectProductModal/SelectProductModal"
|
||||
import {SupplierProduct} from "../../types/supplierProduct";
|
||||
import barcodeApi from "../../api/barcodeApi";
|
||||
import {useDispatch, useSelector} from "react-redux";
|
||||
import {openScanModal, setScannedData} from "../../features/scanModal/scanModalSlice";
|
||||
import {closeScanModal, openScanModal, setScannedData} from "../../features/scanModal/scanModalSlice";
|
||||
import {RootState} from "../../redux/store";
|
||||
import {Product} from "../../types/product";
|
||||
|
||||
@@ -46,11 +46,8 @@ const SearchBar: FC<Props> = ({onSearch, onProductSelected}) => {
|
||||
dispatch(setScannedData(undefined));
|
||||
}}/>
|
||||
<BasicButton onPress={() => {
|
||||
if (!onSearch) return;
|
||||
onSearch(searchInput);
|
||||
if (textInputRef.current) {
|
||||
textInputRef.current.clear();
|
||||
}
|
||||
dispatch(setScannedData(searchInput));
|
||||
dispatch(closeScanModal());
|
||||
}} style={styles.scanButton} label={"Поиск"}/>
|
||||
<View style={styles.scanImageWrapper}>
|
||||
<TouchableOpacity onPress={() => {
|
||||
|
||||
Reference in New Issue
Block a user