chore: fix show addresses
This commit is contained in:
@@ -507,7 +507,10 @@ export const getAllAddresses = async (): Promise<
|
||||
{ invalid_address: string; correct_address: string }[]
|
||||
> => {
|
||||
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: {
|
||||
color: colors.danger,
|
||||
fontSize: fontSize.sm,
|
||||
fontSize: fontSize.md,
|
||||
fontWeight: "600",
|
||||
},
|
||||
correct: {
|
||||
color: colors.success,
|
||||
fontSize: fontSize.sm,
|
||||
marginTop: 4,
|
||||
fontSize: fontSize.md,
|
||||
fontWeight: "600",
|
||||
marginTop: 6,
|
||||
},
|
||||
label: {
|
||||
fontSize: fontSize.xs,
|
||||
fontWeight: "700",
|
||||
letterSpacing: 0.5,
|
||||
marginBottom: 2,
|
||||
},
|
||||
labelInvalid: {
|
||||
color: colors.danger,
|
||||
},
|
||||
labelCorrect: {
|
||||
color: colors.success,
|
||||
},
|
||||
arrow: {
|
||||
color: colors.textMuted,
|
||||
fontSize: fontSize.xs,
|
||||
marginVertical: 2,
|
||||
fontSize: fontSize.lg,
|
||||
marginVertical: 4,
|
||||
},
|
||||
row: {
|
||||
flexDirection: "row",
|
||||
|
||||
Reference in New Issue
Block a user