feat(app): dashboard details added

This commit is contained in:
Atanu Das 2026-07-23 18:33:16 +05:30
parent 0da64513ad
commit 1336de5770
2 changed files with 6 additions and 3 deletions

View File

@ -262,16 +262,16 @@ export const DashboardScreen: React.FC = () => {
<View style={styles.perfRow}> <View style={styles.perfRow}>
<View style={styles.perfBox}> <View style={styles.perfBox}>
<Text style={[styles.perfVal, { color: colors.warning }]}> <Text style={[styles.perfVal, { color: colors.warning }]}>
4.8 {earningsSummaryResponse?.rating?.toFixed(2)}
</Text> </Text>
<Text style={styles.perfLabel}>Rating</Text> <Text style={styles.perfLabel}>Rating</Text>
</View> </View>
<View style={styles.perfBox}> <View style={styles.perfBox}>
<Text style={styles.perfVal}>95%</Text> <Text style={styles.perfVal}>{earningsSummaryResponse?.acceptanceRate}%</Text>
<Text style={styles.perfLabel}>Acceptance</Text> <Text style={styles.perfLabel}>Acceptance</Text>
</View> </View>
<View style={styles.perfBox}> <View style={styles.perfBox}>
<Text style={styles.perfVal}>98%</Text> <Text style={styles.perfVal}>{earningsSummaryResponse?.completionRate}%</Text>
<Text style={styles.perfLabel}>Completion</Text> <Text style={styles.perfLabel}>Completion</Text>
</View> </View>
</View> </View>

View File

@ -23,6 +23,9 @@ export interface DeliveryPartnerLocationResponse {
} }
export interface EarningsSummaryResponse { export interface EarningsSummaryResponse {
rating: number;
completionRate: number;
acceptanceRate: number;
todayEarnings: TodayEarnings; todayEarnings: TodayEarnings;
weeklyEarnings: WeeklyEarning[]; weeklyEarnings: WeeklyEarning[];
} }