NTP-8286 | Foreclosure changes
This commit is contained in:
@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
|
||||
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
||||
}
|
||||
|
||||
def VERSION_CODE = 205
|
||||
def VERSION_NAME = "2.14.5"
|
||||
def VERSION_CODE = 206
|
||||
def VERSION_NAME = "2.14.6"
|
||||
|
||||
android {
|
||||
ndkVersion rootProject.ext.ndkVersion
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "AV_APP",
|
||||
"version": "2.14.5",
|
||||
"buildNumber": "205",
|
||||
"version": "2.14.6",
|
||||
"buildNumber": "206",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"android:dev": "yarn move:dev && react-native run-android",
|
||||
|
||||
@@ -21,8 +21,8 @@ export interface IForeclosureBreakup {
|
||||
penaltyCharges: number;
|
||||
closingInterest: number;
|
||||
excessAvailable: number;
|
||||
totalAmountPreWaiver?: number | null;
|
||||
penaltyChargesPreWaiver?: number | null;
|
||||
totalAmountPreWaiver?: number;
|
||||
penaltyChargesPreWaiver?: number;
|
||||
}
|
||||
const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
title,
|
||||
@@ -37,7 +37,7 @@ const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
excessAvailable,
|
||||
closingInterest,
|
||||
totalAmountPreWaiver,
|
||||
penaltyChargesPreWaiver,
|
||||
penaltyChargesPreWaiver = 0,
|
||||
} = foreclosureBreakup;
|
||||
const foreclosureBreakupMap = useMemo(
|
||||
() => [
|
||||
@@ -52,8 +52,8 @@ const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
{
|
||||
label: 'Penalty charges',
|
||||
value: penaltyCharges,
|
||||
subValue: penaltyChargesPreWaiver,
|
||||
showSubValue: (penaltyChargesPreWaiver !== null) ? true: false
|
||||
preAmount: penaltyChargesPreWaiver,
|
||||
showPreAmount: penaltyChargesPreWaiver > 0,
|
||||
},
|
||||
{
|
||||
label: 'Closing interest',
|
||||
@@ -64,14 +64,7 @@ const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
value: excessAvailable,
|
||||
},
|
||||
],
|
||||
[
|
||||
principal,
|
||||
interest,
|
||||
penaltyCharges,
|
||||
excessAvailable,
|
||||
closingInterest,
|
||||
penaltyChargesPreWaiver,
|
||||
]
|
||||
[principal, interest, penaltyCharges, excessAvailable, closingInterest, penaltyChargesPreWaiver]
|
||||
);
|
||||
return (
|
||||
<View style={GenericStyles.mt16}>
|
||||
@@ -93,8 +86,8 @@ const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
containerStyle={GenericStyles.silverBackground}
|
||||
defaultExpanded={defaultExpanded}
|
||||
>
|
||||
{foreclosureBreakupMap.map(({ label, value, subValue, showSubValue }) =>
|
||||
value > 0 ? (
|
||||
{foreclosureBreakupMap.map(({ label, value, preAmount, showPreAmount }) =>
|
||||
value > 0 || showPreAmount ? (
|
||||
<View
|
||||
style={[
|
||||
GenericStyles.row,
|
||||
@@ -110,8 +103,14 @@ const ForeclosureBreakupAccordion: React.FC<IForeclosureBreakupAccordion> = ({
|
||||
fallBack={<LineLoader width={60} height={10} />}
|
||||
>
|
||||
<View style={GenericStyles.row}>
|
||||
<Text style={[GenericStyles.mr8]} dark>{formatAmount(value)}</Text>
|
||||
{showSubValue ? (<Text style={[styles.strikethrough, GenericStyles.mr8]} dark>{formatAmount(subValue)}</Text>) : null}
|
||||
<Text style={[GenericStyles.mr8]} dark>
|
||||
{formatAmount(value)}
|
||||
</Text>
|
||||
{showPreAmount ? (
|
||||
<Text style={[styles.strikethrough, GenericStyles.mr8]} dark>
|
||||
{formatAmount(preAmount)}
|
||||
</Text>
|
||||
) : null}
|
||||
</View>
|
||||
</SuspenseLoader>
|
||||
</View>
|
||||
@@ -131,6 +130,6 @@ const styles = StyleSheet.create({
|
||||
marginRight: 14,
|
||||
},
|
||||
strikethrough: {
|
||||
textDecorationLine: 'line-through'
|
||||
textDecorationLine: 'line-through',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user