NTP-10056 | Case Status Flex handling (#1024)

This commit is contained in:
Mantri Ramkishor
2024-12-06 16:47:50 +05:30
committed by GitHub
parent d7dac838ed
commit d48439da67
3 changed files with 11 additions and 8 deletions

View File

@@ -113,8 +113,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);
def VERSION_CODE = 221
def VERSION_NAME = "2.15.7"
def VERSION_CODE = 222
def VERSION_NAME = "2.15.8"
android {
namespace "com.avapp"

View File

@@ -1,7 +1,7 @@
{
"name": "AV_APP",
"version": "2.15.7",
"buildNumber": "221",
"version": "2.15.8",
"buildNumber": "222",
"private": true,
"scripts": {
"android:dev": "yarn move:dev && react-native run-android",

View File

@@ -9,13 +9,14 @@ import { feedbackStatusColorMapping } from '../utils';
const FeedbackStatus = (props: IFeedbackStatus) => {
const { caseListItemDetailObj } = props;
const { currentMonthCaseInteractionStatus, lastMonthCaseInteractionStatus } = caseListItemDetailObj || {};
const { currentMonthCaseInteractionStatus, lastMonthCaseInteractionStatus } =
caseListItemDetailObj || {};
return (
<View>
<View style={[styles.dashedBorder, GenericStyles.mv16]} />
<View style={[GenericStyles.row, GenericStyles.justifyContentSpaceBetween]}>
<View>
<View style={GenericStyles.flex50}>
<Text small style={GenericStyles.lh18}>
Current month
</Text>
@@ -36,7 +37,7 @@ const FeedbackStatus = (props: IFeedbackStatus) => {
: 'Not attempted'}
</Text>
</View>
<View style={GenericStyles.alignItemsFlexEnd}>
<View style={[GenericStyles.flex50, GenericStyles.alignItemsFlexEnd]}>
<Text small style={GenericStyles.lh18}>
Last month
</Text>
@@ -52,7 +53,9 @@ const FeedbackStatus = (props: IFeedbackStatus) => {
},
]}
>
{lastMonthCaseInteractionStatus?.status ? lastMonthCaseInteractionStatus?.status : 'Not attempted'}
{lastMonthCaseInteractionStatus?.status
? lastMonthCaseInteractionStatus?.status
: 'Not attempted'}
</Text>
</View>
</View>