TP-65635 | Anshuman | Removed functions to filter data
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
{}
|
||||
|
||||
@@ -44,7 +44,6 @@ const PerformanceOverview = (props: PerformanceOverviewProps) => {
|
||||
<PerformanceItem
|
||||
title={PerformanceDetails.emiCashCollected}
|
||||
icon={<EmiCashCollectedIcon />}
|
||||
shouldFilterForeclosedCases={true}
|
||||
rightSideView={
|
||||
<View style={[GenericStyles.row, GenericStyles.alignCenter]}>
|
||||
<Text
|
||||
|
||||
@@ -26,7 +26,6 @@ export interface PerformanceItemProps {
|
||||
title: string;
|
||||
icon: React.ReactNode;
|
||||
navigateTo?: string;
|
||||
shouldFilterForeclosedCases?: boolean;
|
||||
rightSideView: React.ReactNode;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user