changes on list item and case details screen TP-22781 (#185)
This commit is contained in:
committed by
GitHub Enterprise
parent
aad1ba8083
commit
85b9984a8b
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user