feat(app): dashboard details added
This commit is contained in:
parent
0da64513ad
commit
1336de5770
@ -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>
|
||||||
|
|||||||
@ -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[];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user