update files

This commit is contained in:
jfrye122
2023-07-25 23:27:10 -04:00
parent d29a8a6d66
commit 1bc46e87bf
15 changed files with 40 additions and 353 deletions

View File

@@ -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);
}}
/>