TP-65635 | Anshuman | Removed functions to filter data

This commit is contained in:
Anshuman Rai
2024-05-23 18:48:19 +05:30
parent 953b835f3b
commit 9d2a24e184
5 changed files with 4 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import PerformanceOverview from './PerformanceOverview';
const InternalAgentDashboard = () => {
const performanceData = useAppSelector((state) => state.agentPerformance.performanceData);
const { totalCashCollected = 0, cases, totalEmiCashCollected } = performanceData || {};
const { totalCashCollected = 0, cases, totalEmiCashCollected = 0 } = performanceData || {};
const internalAgentPerformanceOverview = {
totalCashCollected,

View File

@@ -8,11 +8,11 @@ import { addClickstreamEvent } from '../../services/clickstreamEventService';
import { PerformanceItemProps } from './interface';
const PerformanceItem = (props: PerformanceItemProps) => {
const { title, icon, navigateTo, shouldFilterForeclosedCases, rightSideView } = props;
const { title, icon, navigateTo, rightSideView } = props;
const handlePress = () => {
if (navigateTo) {
navigateToScreen(navigateTo, {shouldFilterForeclosedCases});
navigateToScreen(navigateTo);
addClickstreamEvent(
CLICKSTREAM_EVENT_NAMES.FA_PERFORMANCE_DASHBOARD_CASH_COLLECTED_CLICKED,
{}

View File

@@ -44,7 +44,6 @@ const PerformanceOverview = (props: PerformanceOverviewProps) => {
<PerformanceItem
title={PerformanceDetails.emiCashCollected}
icon={<EmiCashCollectedIcon />}
shouldFilterForeclosedCases={true}
rightSideView={
<View style={[GenericStyles.row, GenericStyles.alignCenter]}>
<Text

View File

@@ -26,7 +26,6 @@ export interface PerformanceItemProps {
title: string;
icon: React.ReactNode;
navigateTo?: string;
shouldFilterForeclosedCases?: boolean;
rightSideView: React.ReactNode;
}

View File

@@ -1,5 +1,5 @@
import { useFocusEffect } from '@react-navigation/native';
import React, { useEffect, useMemo, useState } from 'react';
import React, { useEffect, useState } from 'react';
import {
ActivityIndicator,
FlatList,