Case stepper || Aman Singh (#54)

* closed stepper

* changed app name
This commit is contained in:
Aman Singh
2023-01-10 15:50:06 +05:30
committed by GitHub Enterprise
parent 6dba109963
commit 5713344d28
5 changed files with 11 additions and 8 deletions

View File

@@ -139,7 +139,7 @@ android {
applicationId "com.avapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 17
versionCode 20
versionName "Address verification"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

View File

@@ -1,3 +1,3 @@
<resources>
<string name="app_name">AVAPP</string>
<string name="app_name">Address verification</string>
</resources>

View File

@@ -1,4 +1,4 @@
{
"name": "AVAPP",
"displayName": "AVAPP"
"displayName": "Address Verification"
}

View File

@@ -81,13 +81,16 @@ const ListItem: React.FC<IListItem> = props => {
!isTodoItem &&
!!(intermediateTodoListMap?.[caseId] || selectedTodoListMap?.[caseId]);
const address = detail.currentTask?.metadata?.address;
const address = detail.currentTask?.metadata;
const poneNumber = detail.currentTask?.metadata?.primaryPhoneNumber;
const taskTitle =
detail.currentTask?.taskType || detail?.currentTask?.title;
const communicationAddress = getCommunicationAddress(address);
const displayAddress = communicationAddress || poneNumber || '';
const displayAddress = address?.addressLine
? address.addressLine
: poneNumber
? poneNumber
: '';
// @ts-ignore
const caseStatus = displayStatuses[detail.caseStatus] || displayStatuses[detail.caseVerdict];

View File

@@ -39,7 +39,7 @@ const ClosedStepperRenderer: React.FC<ClosedStepperProps> = props => {
].taskStatus === CONTEXT_TASK_STATUSES.VERIFICATION_SUCCESS
);
});
const tasksToRender = tasks.slice(0, verifiedIndex + 1);
const tasksToRender = verifiedIndex>=0 ? tasks.slice(0, verifiedIndex + 1) : tasks;
return (
<>
{tasksToRender.map((task, index) => {