TP-36903 | Added List
This commit is contained in:
@@ -10,7 +10,7 @@ import CashCollected from '../cashCollected';
|
||||
const Stack = createNativeStackNavigator();
|
||||
|
||||
function DashBoardScreens() {
|
||||
const { pendingList } = useAppSelector((state) => state.allCases);
|
||||
const { pendingList, pinnedList, completedList } = useAppSelector((state) => state.allCases);
|
||||
|
||||
return (
|
||||
<Stack.Navigator
|
||||
@@ -33,7 +33,12 @@ function DashBoardScreens() {
|
||||
<Stack.Screen name={PageRouteEnum.CASH_COLLECTED} component={CashCollected} />
|
||||
<Stack.Screen
|
||||
name={PageRouteEnum.FILTERED_CASES}
|
||||
component={() => <CasesList casesList={pendingList} isAgentDashboard />}
|
||||
component={() => (
|
||||
<CasesList
|
||||
casesList={[...pendingList, ...pinnedList, ...completedList]}
|
||||
isAgentDashboard
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user