Package updates & resolve job detail cloud upload bug. Added note type.
This commit is contained in:
@@ -3,7 +3,7 @@ import * as Haptics from "expo-haptics";
|
||||
import { Stack, useGlobalSearchParams } from "expo-router";
|
||||
import { useCallback } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { IconButton } from "react-native-paper";
|
||||
import { Button } from "react-native-paper";
|
||||
import { connect } from "react-redux";
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
@@ -40,12 +40,20 @@ function JobsStack({ openImagePicker }) {
|
||||
options={({ route }) => ({
|
||||
//headerShown: false,
|
||||
title: (route.params as any)?.title || "Job Details",
|
||||
headerRight: () => (
|
||||
<IconButton
|
||||
headerRight: (props) => (
|
||||
<Button
|
||||
icon="cloud-upload-outline"
|
||||
size={20}
|
||||
style={{
|
||||
display: "flex",
|
||||
alignContent: "center",
|
||||
alignItems: "center",
|
||||
alignSelf: "center",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
onPress={handleUpload}
|
||||
/>
|
||||
>
|
||||
{t("general.labels.upload")}
|
||||
</Button>
|
||||
),
|
||||
})}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user