diff --git a/app/features/screens/dashboardScreen/dashboardScreen.tsx b/app/features/screens/dashboardScreen/dashboardScreen.tsx index 69d596d..e212fd9 100644 --- a/app/features/screens/dashboardScreen/dashboardScreen.tsx +++ b/app/features/screens/dashboardScreen/dashboardScreen.tsx @@ -262,16 +262,16 @@ export const DashboardScreen: React.FC = () => { - 4.8 ★ + {earningsSummaryResponse?.rating?.toFixed(2)}★ Rating - 95% + {earningsSummaryResponse?.acceptanceRate}% Acceptance - 98% + {earningsSummaryResponse?.completionRate}% Completion diff --git a/app/interfaces/dashboard.ts b/app/interfaces/dashboard.ts index a2f7584..c47991f 100644 --- a/app/interfaces/dashboard.ts +++ b/app/interfaces/dashboard.ts @@ -23,6 +23,9 @@ export interface DeliveryPartnerLocationResponse { } export interface EarningsSummaryResponse { + rating: number; + completionRate: number; + acceptanceRate: number; todayEarnings: TodayEarnings; weeklyEarnings: WeeklyEarning[]; }