diff --git a/components/Buttons/employee-sign-out-button.component.jsx b/components/Buttons/employee-sign-out-button.component.jsx index 6660b5c..33661be 100644 --- a/components/Buttons/employee-sign-out-button.component.jsx +++ b/components/Buttons/employee-sign-out-button.component.jsx @@ -9,7 +9,7 @@ const mapDispatchToProps = (dispatch) => ({ signOut: () => dispatch(employeeSignOut()), }); -export function SignOutButton({ signOut }) { +export function SignOutButton({ signOut,style }) { const { t } = useTranslation(); return ( diff --git a/components/screen-time-ticket-browser/screen-time-ticket-browser.component.jsx b/components/screen-time-ticket-browser/screen-time-ticket-browser.component.jsx index 1337955..b3ba682 100644 --- a/components/screen-time-ticket-browser/screen-time-ticket-browser.component.jsx +++ b/components/screen-time-ticket-browser/screen-time-ticket-browser.component.jsx @@ -49,6 +49,7 @@ import AddTimeTicketButton from "../Buttons/create-time-ticket-button.component" import KeyboardAvoidingComponent from "../keyboards/KeyboardAvoidingComponent"; import JobSearchAndSelectModal from "../Modals/JobSearchAndSelectModal"; +import { useNavigation } from "@react-navigation/native"; const mapStateToProps = createStructuredSelector({ currentEmployee: selectCurrentEmployee, @@ -86,6 +87,7 @@ export function ScreenTimeTicketBrowser({ refetchQueries: ["QUERY_ACTIVE_TIME_TICKETS"], }); + const navigation = useNavigation(); const [curSelClockIntoJob, setCurSelClockIntoJob] = useState(null); const handleFinish = async (values) => { @@ -196,7 +198,7 @@ export function ScreenTimeTicketBrowser({ } + right={(props) => } /> {currentEmployeeFullName && ( @@ -213,32 +215,32 @@ export function ScreenTimeTicketBrowser({ ( - // - // - // - // - // )} + right={(props) => ( + + + {/* */} + + )} /> - No Data + {t("timeticketbrowser.labels.nodata")} } /> @@ -288,6 +290,7 @@ export function ScreenTimeTicketBrowser({ } const MyItem = ({ itemState, style }) => { + const { t } = useTranslation(); const items = itemState?.data; return (