Skip to content

Commit 6c2b5ac

Browse files
authored
feat(mobile): redesign home feed transaction card (#1102)
Add paired initials avatars, FROM/TO rows, currency amount pill, and grey note box. Like/comment counts and interactions are unchanged.
1 parent 71f5d3d commit 6c2b5ac

1 file changed

Lines changed: 41 additions & 29 deletions

File tree

‎mobileapp/app/(personal)/home.tsx‎

Lines changed: 41 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,17 +1099,26 @@ export default function HomeScreen() {
10991099
</View>
11001100

11011101
<View style={styles.paymentInfo}>
1102-
<View style={styles.paymentRow}>
1103-
<Text style={styles.paymentText} numberOfLines={2}>
1104-
<Text style={styles.boldText}>{item.sender}</Text> paid{" "}
1105-
<Text style={styles.boldText}>{item.receiver}</Text>
1102+
<View style={styles.partyRow}>
1103+
<Text style={styles.partyLabel}>FROM</Text>
1104+
<Text style={styles.partyName} numberOfLines={1}>
1105+
{item.sender}
1106+
</Text>
1107+
</View>
1108+
<View style={styles.partyRow}>
1109+
<Text style={styles.partyLabel}>TO</Text>
1110+
<Text style={styles.partyName} numberOfLines={1}>
1111+
{item.receiver}
11061112
</Text>
1107-
<View style={styles.amountPill}>
1108-
<Text style={styles.amountText}>{item.amount}</Text>
1109-
</View>
11101113
</View>
11111114
<Text style={styles.timestamp}>{item.timestamp}</Text>
11121115
</View>
1116+
1117+
<View style={styles.amountPill}>
1118+
<Text style={styles.amountText} numberOfLines={1}>
1119+
{item.amount}
1120+
</Text>
1121+
</View>
11131122
</View>
11141123

11151124
<View style={styles.memoContainer}>
@@ -2433,7 +2442,7 @@ const styles = StyleSheet.create({
24332442
},
24342443
feedCard: {
24352444
backgroundColor: COLORS.white,
2436-
borderRadius: 24,
2445+
borderRadius: 20,
24372446
padding: 16,
24382447
marginBottom: 14,
24392448
borderWidth: 1,
@@ -2446,7 +2455,7 @@ const styles = StyleSheet.create({
24462455
},
24472456
feedHeader: {
24482457
flexDirection: "row",
2449-
alignItems: "flex-start",
2458+
alignItems: "center",
24502459
marginBottom: 12,
24512460
},
24522461
avatarStack: {
@@ -2479,43 +2488,46 @@ const styles = StyleSheet.create({
24792488
},
24802489
paymentInfo: {
24812490
flex: 1,
2491+
minWidth: 0,
2492+
gap: 3,
24822493
},
2483-
paymentRow: {
2494+
partyRow: {
24842495
flexDirection: "row",
2485-
justifyContent: "space-between",
2486-
alignItems: "flex-start",
2487-
flexWrap: "wrap",
2496+
alignItems: "baseline",
2497+
gap: 6,
24882498
},
2489-
paymentText: {
2490-
flex: 1,
2491-
fontSize: 15,
2492-
lineHeight: 20,
2493-
fontFamily: "Outfit_400Regular",
2494-
color: "#334155",
2495-
flexShrink: 1,
2496-
marginRight: 8,
2499+
partyLabel: {
2500+
width: 31,
2501+
fontSize: 9,
2502+
fontFamily: "Outfit_700Bold",
2503+
color: "#94A3B8",
24972504
},
2498-
boldText: {
2505+
partyName: {
2506+
flex: 1,
2507+
minWidth: 0,
2508+
fontSize: 14,
2509+
lineHeight: 18,
24992510
fontFamily: "Outfit_700Bold",
2500-
color: "#111827",
2511+
color: "#17211D",
25012512
},
25022513
amountPill: {
25032514
backgroundColor: "#F2F9F0",
25042515
borderRadius: 999,
2505-
paddingHorizontal: 10,
2516+
paddingHorizontal: 9,
25062517
paddingVertical: 6,
25072518
borderWidth: 1,
25082519
borderColor: "#DDF2DD",
2509-
alignSelf: "flex-start",
2510-
marginTop: 2,
2520+
alignSelf: "center",
2521+
marginLeft: 8,
2522+
maxWidth: 112,
25112523
},
25122524
amountText: {
2513-
fontSize: 13,
2525+
fontSize: 12,
25142526
fontFamily: "Outfit_700Bold",
25152527
color: "#2E7D32",
25162528
},
25172529
timestamp: {
2518-
fontSize: 12,
2530+
fontSize: 11,
25192531
color: "#94A3B8",
25202532
marginTop: 4,
25212533
},
@@ -2525,7 +2537,7 @@ const styles = StyleSheet.create({
25252537
borderWidth: 1,
25262538
paddingHorizontal: 12,
25272539
paddingVertical: 10,
2528-
borderRadius: 16,
2540+
borderRadius: 12,
25292541
},
25302542
memoLabel: {
25312543
fontSize: 11,

0 commit comments

Comments
 (0)