import { Formik } from "formik"; import React from "react"; import { StyleSheet, Text } from "react-native"; import { useTranslation } from "react-i18next"; import { View, ScrollView } from "react-native"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { Button, Dialog, TextInput } from "react-native-paper"; import { QUERY_EMPLOYEE_BY_ID } from "../../graphql/employees.queries"; //import SelectDropdown from 'react-native-select-dropdown'; import { SelectCostCenter } from "../Selects/select-cost-center"; import { selectCurrentEmployee } from "../../redux/employee/employee.selectors"; //import {DateTimePicker} from "expo"; //TODO add props needed for call const mapStateToProps = createStructuredSelector({ currentEmployee: selectCurrentEmployee, }); export function TimeTicketCreate() { const { t } = useTranslation(); const formSubmit = (values) => { Dialog.alert({ content:
{JSON.stringify(values, null, 2)}
}); //TODO update with start call for create time ticket }; return ( {({ handleChange, handleBlur, handleSubmit, values }) => ( {/* Below will be replaced with a copy of SelectCostCenter but for jobs*/} {/* Below will be replaced with a Date Picker*/} {/* Below will set to auto fill with current employee */} {/* Below will be replaced with SelectCostCenter */} )} {/* Below is for list of jobs/tickets */} ); } export default connect(null, null)(TimeTicketCreate); const localStyles = StyleSheet.create({ content: { display: "flex", flex: 1 }, topTimeTicketContainer: { }, bottomTimeTicketContainer: { }, input: { }, });