Skip to content

Commit

Permalink
refactor: wallet settings redesign (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght authored Sep 25, 2024
1 parent 1fe15ed commit 376853d
Show file tree
Hide file tree
Showing 10 changed files with 777 additions and 206 deletions.
21 changes: 21 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@
"what-asset": "What is {asset}?"
},
"Wallet": {
"Settings": {
"decrypt": "Decrypt to view your wallet’s secret mnemonic.",
"decrypted": "Decrypted Mnemonic",
"descriptor": "Descriptor",
"miban": "Share this code with other people to receive payments.",
"name": "Wallet Name",
"settings": "Wallet Settings",
"tech-info": "Technical information about your wallet, helpful for advanced recovery.",
"unlock": "Unlock to Decrypt"
},
"Vault": {
"lock": "Lock",
"lock-wallet": "Lock your wallet",
"locked": "Locked",
"password": "Your BancoLibre Password",
"seed": "Your seed phrase is encrypted with your password.",
"unlock": "Unlock",
"unlock-wallet": "Unlock your wallet",
"unlocked": "Unlocked"
},
"add-contact": "Add Contact",
"add-desc": "Add Description",
"amount": "Please specify an amount.",
Expand Down Expand Up @@ -52,6 +72,7 @@
"decrypt": "Decrypt",
"done": "Done",
"email": "Email",
"error": "Error",
"mnemonic": "Encrypted Mnemonic",
"next": "Next",
"optional": "Optional",
Expand Down
21 changes: 21 additions & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,26 @@
"what-asset": "Qué es {asset}?"
},
"Wallet": {
"Settings": {
"decrypt": "Desencriptar para ver la frase secreta de tu billetera.",
"decrypted": "Frase Secreta Desencriptada",
"descriptor": "Descriptor",
"miban": "Comparte este código con otras personas para recibir pagos.",
"name": "Nombre de la Billetera",
"settings": "Configuración de la Billetera",
"tech-info": "Información técnica sobre tu billetera, útil para recuperación avanzada.",
"unlock": "Desbloquear para Desencriptar"
},
"Vault": {
"lock": "Bloquear",
"lock-wallet": "Bloquear tu billetera",
"locked": "Bloqueado",
"password": "Tu Contraseña de BancoLibre",
"seed": "Tu frase semilla está encriptada con tu contraseña.",
"unlock": "Desbloquear",
"unlock-wallet": "Desbloquear tu billetera",
"unlocked": "Desbloqueado"
},
"add-contact": "Agregar Contacto",
"add-desc": "Agrega una descripción",
"amount": "Especifíca una cantidad.",
Expand Down Expand Up @@ -52,6 +72,7 @@
"decrypt": "Descifra",
"done": "Terminado",
"email": "Correo",
"error": "Error",
"mnemonic": "Mnemonic Cifrada",
"next": "Siguiente",
"optional": "Opcional",
Expand Down
15 changes: 0 additions & 15 deletions src/app/(app)/(layout)/wallet/[walletId]/settings/page.tsx

This file was deleted.

7 changes: 7 additions & 0 deletions src/app/(app)/(layout)/wallet/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use client';

import { WalletSettings } from '@/views/wallet/Settings';

export default function Page() {
return <WalletSettings />;
}
2 changes: 2 additions & 0 deletions src/components/button/VaultButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ const PasskeyVaultButton: FC<{
title: 'Unable to unlock.',
description: messages.join(', '),
});

return;
}

setKeys({
Expand Down
Loading

0 comments on commit 376853d

Please sign in to comment.