added navigation to new screentimeticketcreate
This commit is contained in:
@@ -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 (
|
||||
<Button
|
||||
mode="text"
|
||||
compact={true}
|
||||
onPress={() => doOnPress()}
|
||||
onPress={() => {navigation.navigate("CreateTimeTicket");}}
|
||||
icon="plus"
|
||||
>
|
||||
<Text style={{fontSize: 12}}>{t("timeticketbrowser.actions.ticket")}</Text>
|
||||
|
||||
Reference in New Issue
Block a user