diff --git a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx index 84a49253..0a577a04 100644 --- a/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx +++ b/src/pages/ValidatorOnboarding/KeyGeneration/RecoveryMechanism/RecoveryMechanism.tsx @@ -8,7 +8,11 @@ type RecoveryMechanismProps = { recoveryMechanism: string } -const cards = [RECOVERY_PHRASE, KEYSTORE_FILES, BOTH_KEY_AND_RECOVERY] +const cards = { + [RECOVERY_PHRASE]: 'recovery-phrase-icon.svg', + [KEYSTORE_FILES]: 'keystore-files-icon.svg', + [BOTH_KEY_AND_RECOVERY]: 'both-recovery-keystore-icon.svg', +} const RecoveryMechanism = ({ recoveryMechanism }: RecoveryMechanismProps) => { return ( @@ -17,8 +21,13 @@ const RecoveryMechanism = ({ recoveryMechanism }: RecoveryMechanismProps) => { Select Recovery Mechanism - {cards.map(value => ( - + {Object.entries(cards).map(([value, icon]) => ( + ))}