update files
This commit is contained in:
@@ -1,28 +1,21 @@
|
||||
import React, { useState } from "react";
|
||||
import { useQuery } from "@apollo/client";
|
||||
import { StyleSheet, Text, View } from "react-native";
|
||||
import { StyleSheet, View } from "react-native";
|
||||
import { Dropdown } from "react-native-element-dropdown";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { QUERY_EMPLOYEE_BY_ID } from "../../graphql/employees.queries";
|
||||
import { useEffect } from "react";
|
||||
import { t } from "i18next";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop
|
||||
// timeTicketJobId: selectCurrentTimeTicketJobId,
|
||||
// timeTicketJob: selectCurrentTimeTicketJob,
|
||||
});
|
||||
|
||||
// const mapDispatchToProps = {};
|
||||
|
||||
export function CostCenterSelect(props) {
|
||||
const currentRatesNCostCenters = props.currentRatesNCostCenters;
|
||||
const bodyshop = props.bodyshop;
|
||||
|
||||
const [value, setValue] = useState(null);
|
||||
// const [value, setValue] = useState(null);
|
||||
const [isFocus, setIsFocus] = useState(false);
|
||||
const [costCenters, setCostCenters] = useState([]);
|
||||
|
||||
@@ -52,7 +45,6 @@ export function CostCenterSelect(props) {
|
||||
selectedTextStyle={styles.selectedTextStyle}
|
||||
inputSearchStyle={styles.inputSearchStyle}
|
||||
iconStyle={styles.iconStyle}
|
||||
|
||||
maxHeight={200}
|
||||
labelField="label"
|
||||
valueField="value"
|
||||
@@ -64,7 +56,6 @@ export function CostCenterSelect(props) {
|
||||
value={props.currentValue?.value}
|
||||
onChange={(item) => {
|
||||
props.onValueSelected(item);
|
||||
//setValue(item.value);
|
||||
setIsFocus(false);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user