Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 41 additions & 29 deletions mobileapp/app/(personal)/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
const [earningsModalVisible, setEarningsModalVisible] = useState(false);
const [autoYieldEnabled, setAutoYieldEnabled] = useState(true);
const [autoEarnSyncing, setAutoEarnSyncing] = useState(false);
const [autoEarnTooltipVisible, setAutoEarnTooltipVisible] = useState(false);

Check failure on line 164 in mobileapp/app/(personal)/home.tsx

View workflow job for this annotation

GitHub Actions / Frontend (React Native)

'autoEarnTooltipVisible' is assigned a value but never used
const [autoEarnDescModalVisible, setAutoEarnDescModalVisible] = useState(false);
const [refreshing, setRefreshing] = useState(false);
const [notifPromptVisible, setNotifPromptVisible] = useState(false);
Expand Down Expand Up @@ -263,7 +263,7 @@

// Balance figures derived from the raw XLM tokens, redrawn in the active
// denomination the moment the currency preference changes.
const availableBalanceDisplay = useMemo(

Check failure on line 266 in mobileapp/app/(personal)/home.tsx

View workflow job for this annotation

GitHub Actions / Frontend (React Native)

'availableBalanceDisplay' is assigned a value but never used
() => formatBalance(availableBalanceXlm, displayCurrency),
[availableBalanceXlm, displayCurrency]
);
Expand All @@ -272,7 +272,7 @@
[totalYieldEarnedXlm, displayCurrency]
);

const toggleCurrency = useCallback(() => {

Check failure on line 275 in mobileapp/app/(personal)/home.tsx

View workflow job for this annotation

GitHub Actions / Frontend (React Native)

'toggleCurrency' is assigned a value but never used
void Haptics.selectionAsync().catch(() => undefined);
setDisplayCurrency((prev) => {
const next = prev === "NGN" ? "XLM" : "NGN";
Expand Down Expand Up @@ -614,7 +614,7 @@
}
};

const toggleAutoEarnTooltip = () => {

Check failure on line 617 in mobileapp/app/(personal)/home.tsx

View workflow job for this annotation

GitHub Actions / Frontend (React Native)

'toggleAutoEarnTooltip' is assigned a value but never used
void Haptics.selectionAsync().catch(() => undefined);
setAutoEarnTooltipVisible((prev) => !prev);
};
Expand Down Expand Up @@ -1094,17 +1094,26 @@
</View>

<View style={styles.paymentInfo}>
<View style={styles.paymentRow}>
<Text style={styles.paymentText} numberOfLines={2}>
<Text style={styles.boldText}>{item.sender}</Text> paid{" "}
<Text style={styles.boldText}>{item.receiver}</Text>
<View style={styles.partyRow}>
<Text style={styles.partyLabel}>FROM</Text>
<Text style={styles.partyName} numberOfLines={1}>
{item.sender}
</Text>
</View>
<View style={styles.partyRow}>
<Text style={styles.partyLabel}>TO</Text>
<Text style={styles.partyName} numberOfLines={1}>
{item.receiver}
</Text>
<View style={styles.amountPill}>
<Text style={styles.amountText}>{item.amount}</Text>
</View>
</View>
<Text style={styles.timestamp}>{item.timestamp}</Text>
</View>

<View style={styles.amountPill}>
<Text style={styles.amountText} numberOfLines={1}>
{item.amount}
</Text>
</View>
</View>

<View style={styles.memoContainer}>
Expand Down Expand Up @@ -1401,7 +1410,7 @@

return (
<>
{projections.map((proj, idx) => {

Check failure on line 1413 in mobileapp/app/(personal)/home.tsx

View workflow job for this annotation

GitHub Actions / Frontend (React Native)

'idx' is defined but never used. Allowed unused args must match /^_/u
const barHeight = (proj.value / maxValue) * 110;
return (
<View key={proj.label} style={styles.compoundingBar}>
Expand Down Expand Up @@ -2428,7 +2437,7 @@
},
feedCard: {
backgroundColor: COLORS.white,
borderRadius: 24,
borderRadius: 20,
padding: 16,
marginBottom: 14,
borderWidth: 1,
Expand All @@ -2441,7 +2450,7 @@
},
feedHeader: {
flexDirection: "row",
alignItems: "flex-start",
alignItems: "center",
marginBottom: 12,
},
avatarStack: {
Expand Down Expand Up @@ -2474,43 +2483,46 @@
},
paymentInfo: {
flex: 1,
minWidth: 0,
gap: 3,
},
paymentRow: {
partyRow: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "flex-start",
flexWrap: "wrap",
alignItems: "baseline",
gap: 6,
},
paymentText: {
flex: 1,
fontSize: 15,
lineHeight: 20,
fontFamily: "Outfit_400Regular",
color: "#334155",
flexShrink: 1,
marginRight: 8,
partyLabel: {
width: 31,
fontSize: 9,
fontFamily: "Outfit_700Bold",
color: "#94A3B8",
},
boldText: {
partyName: {
flex: 1,
minWidth: 0,
fontSize: 14,
lineHeight: 18,
fontFamily: "Outfit_700Bold",
color: "#111827",
color: "#17211D",
},
amountPill: {
backgroundColor: "#F2F9F0",
borderRadius: 999,
paddingHorizontal: 10,
paddingHorizontal: 9,
paddingVertical: 6,
borderWidth: 1,
borderColor: "#DDF2DD",
alignSelf: "flex-start",
marginTop: 2,
alignSelf: "center",
marginLeft: 8,
maxWidth: 112,
},
amountText: {
fontSize: 13,
fontSize: 12,
fontFamily: "Outfit_700Bold",
color: "#2E7D32",
},
timestamp: {
fontSize: 12,
fontSize: 11,
color: "#94A3B8",
marginTop: 4,
},
Expand All @@ -2520,7 +2532,7 @@
borderWidth: 1,
paddingHorizontal: 12,
paddingVertical: 10,
borderRadius: 16,
borderRadius: 12,
},
memoLabel: {
fontSize: 11,
Expand Down
Loading