chore: fix show addresses

This commit is contained in:
2026-02-25 11:11:55 +01:00
parent 1376ce3583
commit 0fb4bd8a89
2 changed files with 22 additions and 6 deletions
+4 -1
View File
@@ -507,7 +507,10 @@ export const getAllAddresses = async (): Promise<
{ invalid_address: string; correct_address: string }[] { invalid_address: string; correct_address: string }[]
> => { > => {
const { data } = await apiClient.get(`${V2}/admin/protected/addresses`); const { data } = await apiClient.get(`${V2}/admin/protected/addresses`);
return data.addresses ?? []; return (data.addresses ?? []).map((a: any) => ({
invalid_address: a.invalid_address ?? a.InvalidAddress ?? "",
correct_address: a.correct_address ?? a.CorrectAddress ?? "",
}));
}; };
// ============================================ // ============================================
@@ -134,18 +134,31 @@ export default function AddressScreen() {
}, },
invalid: { invalid: {
color: colors.danger, color: colors.danger,
fontSize: fontSize.sm, fontSize: fontSize.md,
fontWeight: "600", fontWeight: "600",
}, },
correct: { correct: {
color: colors.success, color: colors.success,
fontSize: fontSize.sm, fontSize: fontSize.md,
marginTop: 4, fontWeight: "600",
marginTop: 6,
},
label: {
fontSize: fontSize.xs,
fontWeight: "700",
letterSpacing: 0.5,
marginBottom: 2,
},
labelInvalid: {
color: colors.danger,
},
labelCorrect: {
color: colors.success,
}, },
arrow: { arrow: {
color: colors.textMuted, color: colors.textMuted,
fontSize: fontSize.xs, fontSize: fontSize.lg,
marginVertical: 2, marginVertical: 4,
}, },
row: { row: {
flexDirection: "row", flexDirection: "row",