changes on list item and case details screen TP-22781 (#185)

This commit is contained in:
Aman Sethi
2023-03-29 13:43:55 +05:30
committed by GitHub Enterprise
parent aad1ba8083
commit 85b9984a8b
3 changed files with 34 additions and 10 deletions

View File

@@ -140,15 +140,29 @@ const ListItem: React.FC<IListItem> = props => {
<View style={styles.tag}>
{detail?.caseType ===
CaseAllocationType.COLLECTION_CASE ? (
<Tag
variant="violet"
text={
CaseTypeMap[
CaseAllocationType.COLLECTION_CASE
]
}
tagIcon={<CollectionsIcon />}
/>
<View
style={[
GenericStyles.row,
GenericStyles.alignCenter,
]}>
<Tag
variant="violet"
text={
CaseTypeMap[
CaseAllocationType.COLLECTION_CASE
]
}
tagIcon={<CollectionsIcon />}
/>
{detail?.collectionTag ? (
<View style={[GenericStyles.ml8]}>
<Tag
variant="gray"
text={detail.collectionTag}
/>
</View>
) : null}
</View>
) : (
<Tag
variant="teal"

View File

@@ -6,13 +6,14 @@ import { COLORS } from '../../../RN-UI-LIB/src/styles/colors';
import Text from '../../../RN-UI-LIB/src/components/Text';
import { formatAmount } from '../../../RN-UI-LIB/src/utlis/amount';
import LANChip from './LANChip';
import Tag from '../../../RN-UI-LIB/src/components/Tag';
interface ICollectionCaseData {
caseData: CaseDetail;
}
const CollectionCaseData: React.FC<ICollectionCaseData> = ({ caseData }) => {
const { fatherName, currentDpd, loanAccountNumber, dpdBucket, pos } =
const { fatherName, currentDpd, loanAccountNumber, dpdBucket, pos, collectionTag } =
caseData;
return (
@@ -47,6 +48,14 @@ const CollectionCaseData: React.FC<ICollectionCaseData> = ({ caseData }) => {
<Text style={[styles.greyText]} small>
POS {formatAmount(pos)}
</Text>
{collectionTag ? (
<>
<View style={styles.lineStyle} />
<Text style={[styles.greyText]} small>
{collectionTag}
</Text>
</>
) : null}
</View>
</View>
);

View File

@@ -176,6 +176,7 @@ export interface CaseDetail {
tenureMonths?: number;
offlineCaseKey?: string; // using for the collection case to handle multiple offline feedbacks
imageReferenceId?: string;
collectionTag?: 'Fresh' | 'Stab';
}
export interface AddressesGeolocationPayload {