From 57f7adac6eaec739c4bdf5f6b0168d7101e5e9e0 Mon Sep 17 00:00:00 2001 From: jfrye122 Date: Fri, 5 May 2023 09:23:01 -0400 Subject: [PATCH] added navigation to new screentimeticketcreate --- .../create-time-ticket-button.component.jsx | 9 +++- .../screen-main/screen-main.component.jsx | 41 ++++++++++++------- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/components/Buttons/create-time-ticket-button.component.jsx b/components/Buttons/create-time-ticket-button.component.jsx index 0063bd8..df87a22 100644 --- a/components/Buttons/create-time-ticket-button.component.jsx +++ b/components/Buttons/create-time-ticket-button.component.jsx @@ -3,18 +3,23 @@ import { Text } from "react-native"; import { Button } from "react-native-paper"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; +import { useNavigation } from "@react-navigation/native"; + + // const mapDispatchToProps = (dispatch) => ({ // signOut: () => dispatch(employeeSignOut()), // }); -export function AddTimeTicketButton({ doOnPress }) { +export function AddTimeTicketButton() { + + const navigation = useNavigation(); const { t } = useTranslation(); return (