Demo adjustments, resolve upload issues, remove messaging.

This commit is contained in:
Patrick Fic
2021-01-12 18:28:58 -08:00
parent 06dda3639f
commit 7d1a265dee
18 changed files with 656 additions and 78 deletions

View File

@@ -21,6 +21,7 @@ const mapDispatchToProps = (dispatch) => ({
});
export function JobListItem({ setCameraJob, setCameraJobId, item }) {
const { t } = useTranslation();
const navigation = useNavigation();
const RenderRightAction = (props) => {
const navigation = useNavigation();
@@ -44,7 +45,7 @@ export function JobListItem({ setCameraJob, setCameraJobId, item }) {
const onPress = () => {
navigation.push("JobDetail", {
jobId: item.id,
title: item.ro_number ? item.ro_number : `EST-${item.est_number}`,
title: item.ro_number || t("general.labels.na"),
});
};
@@ -55,7 +56,7 @@ export function JobListItem({ setCameraJob, setCameraJobId, item }) {
<CardItem header bordered first button>
<View style={localStyles.item_header}>
<H3 style={localStyles.item_header_content}>
{item.ro_number ? item.ro_number : `EST-${item.est_number}`}
{item.ro_number || t("general.labels.na")}
</H3>
<Text style={localStyles.item_header_margin}>
{item.clm_no || ""}