Skip to content

Commit

Permalink
Fix minor UI styling issues (#328)
Browse files Browse the repository at this point in the history
* minor clean up in 'restore-warning' screen component

* update pin screen ui

* update pin screen ui

* update pin screen

* minor style fix in addressbook screen

* update beta hint styling in dashboard

* update spacings in balance section of dashboard

* Refactor size values in history details

* Update Balance component's minHeight to 55%

* Update padding in Balance component

* remove suggestion of the enuts default mint

* add linking for BITCOIN_MINTS_URL to empty mints screen

* add translation

* update pin screen spacings

* Fix styling issue in error screen coming from scanner

* update lottie success animation

* Fixes #293

* lint
  • Loading branch information
KKA11010 committed Mar 29, 2024
1 parent 1c8e74b commit 36f30f6
Show file tree
Hide file tree
Showing 25 changed files with 186 additions and 258 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The [**cashu-ts**](https://github.com/cashubtc/cashu-ts) library and SQLite are

1. Fork this repository and create a local clone.
2. Navigate inside the repository and run `npm i`
3. Start the Expo dev server by running `npm run start`
3. Start the Expo dev server by running `npm run start` or with an empty cache by running `npm run s:c`
4. Download the [Expo Go](https://expo.dev/client) app.
- **Android users**: Scan the QR code provided by your terminal using the Expo-go app
- **iOS users**: Press on the local dev server shown in the Expo-go app or scan the QR code using your camera app.
Expand Down
10 changes: 3 additions & 7 deletions assets/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "PIN erstellen",
"editPin": "PIN ändern",
"pinMismatch": "PIN inkorrekt!",
"pinSetup": "Sie können optional eine PIN erstellen um Ihre App zu schützen.\n\n ACHTUNG: Wenn die PIN vergessen wird, ist derzeit keine Wiederherstellung möglich!",
"pinSetup": "Sie können optional eine PIN erstellen um Ihre App zu schützen.",
"pleaseConfirm": "Bitte bestätigen Sie Ihre PIN.",
"pleaseConfirmNewPin": "Bitte bestätigen Sie Ihre neue PIN.",
"pleaseEnter": "Bitte geben Sie Ihre PIN ein.",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Kopieren",
"cycle": "Zyklus",
"findMint": "Eine Mint finden",
"manualCounterIncrease": "Zähler erhöhen",
"manualCounterIncreaseHint": "Die Zähler erhöhen sich automatisch nach jeder Transaktion, aber in seltenen Fällen kann dies fehlschlagen, was zu Fehlern während des Wiederherstellungsprozesses führt. Das manuelle Erhöhen der Zähler kann den Zustand beheben.",
"increaseCounterHint": "Sind Sie sicher, dass Sie die Zähler erhöhen möchten? Dies sollte nur geschehen, wenn Sie sicher sind, dass die Zähler nicht synchron sind.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Bestätigen Sie bitte Ihren Seed, indem Sie das richtige Wort eingeben.",
"aboutToLeaveTo": "Sie sind im Begriff die App zu verlassen",
"accept": "Annehmen",
"addEnutsMint": "eNuts mint verwenden",
"amount": "Betrag",
"back": "Zurück",
"backToDashboard": "Zurück zu Wallet",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "von",
"fromMint": "von folgende Mint",
"german": "Deutsch",
"getStarted": "Loslegen",
"githubIssues": "Melden Sie Fehler auf Github",
"shareOrReport": "Feedback teilen oder Fehler melden",
"historyDeleted": "Verlauf gelöscht",
Expand Down Expand Up @@ -160,16 +159,14 @@
"recipient": "Empfänger",
"reqTimeout": "Timeout für Netzwerkanfragen",
"save": "Speichern",
"scanAgain": "Hier tippen, um erneut zu scannen",
"scanAgain": "Erneut scannen",
"scan": "Scannen",
"seconds": "Sekunden",
"selectAmount": "Betrag auswählen",
"selected": "Ausgewählt",
"selectMint": "Mint für Zahlung auswählen",
"sendEcash": "Ecash senden",
"share": "Teilen",
"smthWrong": "Etwas is schief gelaufen",
"startHint": "Sie können entweder die bereits vorhandene eNuts-Mint verwenden oder Ihre eigene.",
"submitPaymentReq": "Auszahlen",
"to": "bis",
"today": "Heute",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Unbekannter Code-Typ",
"version": "Version",
"willDoLater": "Mache ich später",
"addMintUrl": "Mint URL hinzufügen",
"yes": "Ja",
"invalidPubKey": "Invalider öffentlicher Schlüssel!",
"walletLocked": "Wallet gesperrt",
Expand Down
10 changes: 3 additions & 7 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "Create PIN",
"editPin": "Edit PIN",
"pinMismatch": "Incorrect PIN!",
"pinSetup": "You can optionally setup a PIN to secure your app.\n\nWARNING: If the PIN is forgotten, restoration is currently unavailable!",
"pinSetup": "You can optionally setup a PIN to secure your app.",
"pleaseConfirm": "Please confirm your PIN.",
"pleaseConfirmNewPin": "Please confirm your new PIN.",
"pleaseEnter": "Please enter your PIN now.",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Copy",
"cycle": "Cycle",
"findMint": "Find a mint",
"manualCounterIncrease": "Increase counters",
"manualCounterIncreaseHint": "The counters increment automatically after each transaction, but in rare cases, this may fail, leading to errors during the restoration process. Manually raising the counters can resolve the state.",
"increaseCounterHint": "Are you sure you want to increase the counters? This should only be done if you are sure that the counters are out of sync.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Please confirm your seed by typing the correct word.",
"aboutToLeaveTo": "You are about to leave",
"accept": "Accept",
"addEnutsMint": "Use the eNuts mint",
"amount": "Amount",
"back": "Back",
"backToDashboard": "Back to dashboard",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "from",
"fromMint": "from the following mint",
"german": "German",
"getStarted": "Get started",
"githubIssues": "Report bugs on Github",
"shareOrReport": "Share feedback or report bugs",
"historyDeleted": "History deleted",
Expand Down Expand Up @@ -160,16 +159,14 @@
"recipient": "Recipient",
"reqTimeout": "Network request timeout",
"save": "Save",
"scanAgain": "Tap to Scan Again",
"scanAgain": "Scan Again",
"scan": "Scan",
"seconds": "seconds",
"selectAmount": "Select amount",
"selected": "Selected",
"selectMint": "Select a mint to send from",
"sendEcash": "Send Ecash",
"share": "Share",
"smthWrong": "Something went wrong",
"startHint": "You can either use the pre-existing eNuts mint or introduce another custom mint.",
"submitPaymentReq": "Cash out",
"to": "to",
"today": "Today",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Unknown data",
"version": "Version",
"willDoLater": "Will do later",
"addMintUrl": "Add mint URL",
"yes": "Yes",
"invalidPubKey": "Invalid public key!",
"walletLocked": "Wallet locked",
Expand Down
10 changes: 3 additions & 7 deletions assets/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "Crear PIN",
"editPin": "Editar PIN",
"pinMismatch": "¡PIN incorrecto!",
"pinSetup": "Puedes establecer un PIN para proteger la aplicación (opcional).\n\nADVERTENCIA: ¡Todavía no es posible restaurar si olvidas el PIN!",
"pinSetup": "Puedes establecer un PIN para proteger la aplicación (opcional).",
"pleaseConfirm": "Por favor, confirma tu PIN.",
"pleaseConfirmNewPin": "Por favor, confirma tu nuevo PIN.",
"pleaseEnter": "Por favor, introduce tu PIN.",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Copiar",
"cycle": "Ciclo",
"findMint": "Buscar ceca",
"manualCounterIncrease": "Incrementar contadores",
"manualCounterIncreaseHint": "Los contadores se incrementan automáticamente después de cada transacción, pero en casos raros, esto puede fallar, lo que lleva a errores durante el proceso de restauración. Elevar manualmente los contadores puede resolver el estado.",
"increaseCounterHint": "¿Estás seguro de que quieres incrementar los contadores? Esto solo debe hacerse si estás seguro de que los contadores no están sincronizados.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Por favor, confirma tu semilla escribiendo la palabra correcta.",
"aboutToLeaveTo": "Estás a punto de salir",
"accept": "Aceptar",
"addEnutsMint": "Usar la ceca de eNuts",
"amount": "Cantidad",
"back": "Volver",
"backToDashboard": "Volver al panel de control",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "desde",
"fromMint": "desde la siguiente ceca",
"german": "Alemán",
"getStarted": "Empezar",
"githubIssues": "Reportar bugs en Github",
"shareOrReport": "Compartir opiniones o reportar bugs",
"historyDeleted": "Historial eliminado",
Expand Down Expand Up @@ -160,16 +159,14 @@
"recipient": "Receptor",
"reqTimeout": "Tiempo de espera de la solicitud de red agotado",
"save": "Guardar",
"scanAgain": "Toca para escanear de nuevo",
"scanAgain": "Escanear de nuevo",
"scan": "Escanear",
"seconds": "segundos",
"selectAmount": "Seleccionar cantidad",
"selected": "Seleccionado",
"selectMint": "Seleccionar una ceca desde la que enviar",
"sendEcash": "Enviar Ecash",
"share": "Compartir",
"smthWrong": "Algo falló",
"startHint": "Puedes utilizar la ceca de eNuts o introducir otra ceca personalizada.",
"submitPaymentReq": "Retirar efectivo",
"to": "para",
"today": "Hoy",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Desconocido",
"version": "Versión",
"willDoLater": "Dejar para después",
"addMintUrl": "Añade la URL de la ceca",
"yes": "",
"invalidPubKey": "¡Clave pública inválida!",
"walletLocked": "Cartera bloqueada",
Expand Down
10 changes: 3 additions & 7 deletions assets/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "Créer un PIN",
"editPin": "Modifier le PIN",
"pinMismatch": "PIN incorrect!",
"pinSetup": "Vous pouvez facultativement configurer un PIN pour sécuriser votre app.\n\nATTENTION: Si le code PIN est oublié, la restauration est actuellement indisponible!",
"pinSetup": "Vous pouvez facultativement configurer un PIN pour sécuriser votre app.",
"pleaseConfirm": "Veuillez confirmer votre PIN.",
"pleaseConfirmNewPin": "Veuillez confirmer votre nouveau PIN.",
"pleaseEnter": "Veuillez entrer votre PIN",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Copier",
"cycle": "Cycle",
"findMint": "Trouver une mint",
"manualCounterIncrease": "Incrémenter les compteurs",
"manualCounterIncreaseHint": "Les compteurs s'incrémentent automatiquement après chaque transaction, mais dans de rares cas, cela peut échouer, entraînant des erreurs lors du processus de restauration. L'augmentation manuelle des compteurs peut résoudre l'état.",
"increaseCounterHint": "Êtes-vous sûr de vouloir augmenter les compteurs? Cela ne devrait être fait que si vous êtes sûr que les compteurs ne sont pas synchronisés.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Veuillez confirmer votre graine en tapant le mot correct.",
"aboutToLeaveTo": "Vous êtes sur le point de quitter",
"accept": "Accepter",
"addEnutsMint": "Utiliser eNuts mint",
"amount": "Montant",
"back": "Retour",
"backToDashboard": "Retour au tableau de bord",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "de",
"fromMint": "de la Mint suivante",
"german": "Allemand",
"getStarted": "Commencer",
"githubIssues": "Signalez des bugs sur Github",
"shareOrReport": "Signaler des bugs",
"historyDeleted": "Historique supprimé",
Expand Down Expand Up @@ -160,16 +159,14 @@
"recipient": "Bénéficiaire",
"reqTimeout": "Délais de la requête réseau",
"save": "Enregistrer",
"scanAgain": "Appuyez pour scanner à nouveau",
"scanAgain": "Scanner à nouveau",
"scan": "Scanner",
"seconds": "secondes",
"selectAmount": "Sélectionner le montant",
"selected": "Sélectionné",
"selectMint": "Sélectionnez une Mint à partir de laquelle envoyer",
"sendEcash": "Envoyer Ecash",
"share": "Partager",
"smthWrong": "Quelque chose s'est mal passé",
"startHint": "Vous pouvez soit utiliser la mint de eNuts préexistante, soit une autre out votre propre mint.",
"submitPaymentReq": "Retirer votre argent",
"to": "à",
"today": "Aujourd'hui",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Données inconnues",
"version": "Version",
"willDoLater": "Je ferai plus tard",
"addMintUrl": "Ajouter mint URL",
"yes": "Oui",
"invalidPubKey": "Clé publique invalide!",
"walletLocked": "Wallet verrouillé",
Expand Down
8 changes: 2 additions & 6 deletions assets/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "PIN létrehozása",
"editPin": "PIN szerkesztése",
"pinMismatch": "Helytelen PIN!",
"pinSetup": "Lehetőséged van PIN-t beállítani az alkalmazás védelmére.\n\nFIGYELEM: Ha elfelejted a PIN-t annak visszaállítása nem lehetséges!",
"pinSetup": "Lehetőséged van PIN-t beállítani az alkalmazás védelmére.",
"pleaseConfirm": "Kérjük erősítsd meg a PIN-t.",
"pleaseConfirmNewPin": "Kérjük erősítsd meg az új PIN-t.",
"pleaseEnter": "Kérjük add meg a PIN-t most.",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Másolás",
"cycle": "Ciklus",
"findMint": "Verde keresése",
"manualCounterIncrease": "Számlálók növelése",
"manualCounterIncreaseHint": "A számlálók automatikusan növekednek minden tranzakció után, de ritka esetekben ez hibához vezethet, ami problémákat okozhat a helyreállítási folyamat során. A számlálók manuális növelése megoldhatja ezt az állapotot.",
"increaseCounterHint": "Biztosan növelni szeretnéd a számlálókat? Ezt csak akkor szabad megtenni, ha biztos vagy benne, hogy a számlálók nincsenek szinkronban.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Kérjük erősítsd meg a helyreállító jelmondatot a helyes szavak begépelésével.",
"aboutToLeaveTo": "Épp kilépni készülsz",
"accept": "Elfogad",
"addEnutsMint": "eNuts verde használata",
"amount": "Összeg",
"back": "Vissza",
"backToDashboard": "Vissza a kezdőképernyőre",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "innen",
"fromMint": "az alábbi verdétől",
"german": "Német",
"getStarted": "Kezdeti lépések",
"githubIssues": "Hibák jelentése Github-on",
"shareOrReport": "Visszajelzés küldése vagy hibák jelentése",
"historyDeleted": "Előzmények eltávolítva",
Expand Down Expand Up @@ -168,8 +167,6 @@
"selectMint": "Válassz verdét a küldéshez",
"sendEcash": "Ecash küldése",
"share": "Megosztás",
"smthWrong": "Valami hiba történt",
"startHint": "Használhatod a létező eNuts verdét vagy megadhadsz egyedi verdét.",
"submitPaymentReq": "Kifizetés",
"to": "ide",
"today": "Ma",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Ismeretlen adat",
"version": "Verzió",
"willDoLater": "Majd később",
"addMintUrl": "Új verde URL",
"yes": "Igen",
"invalidPubKey": "Érvénytelen publikus kulcs!",
"walletLocked": "Tárca zárolva",
Expand Down
8 changes: 2 additions & 6 deletions assets/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createPin": "Tengeneza PIN",
"editPin": "Hariri PIN",
"pinMismatch": "PIN isiyo sahihi!",
"pinSetup": "Unaweza hiari kuweka PIN kwa usalama wa programu yako.\n\nTAHADHARI: Ikiwa PIN itasahaulika, kurejesha sasa haipatikani!",
"pinSetup": "Unaweza hiari kuweka PIN kwa usalama wa programu yako.",
"pleaseConfirm": "Tafadhali thibitisha PIN yako.",
"pleaseConfirmNewPin": "Tafadhali thibitisha PIN mpya yako.",
"pleaseEnter": "Tafadhali ingiza PIN yako sasa.",
Expand All @@ -29,6 +29,7 @@
"common": {
"copy": "Nakili",
"cycle": "kurejesha",
"findMint": "Tafuta sarafu",
"manualCounterIncrease": "Ongeza vitunguu",
"manualCounterIncreaseHint": "Vitunguu huongezeka kiotomatiki baada ya kila muamala, lakini katika hali nadra, hii inaweza kushindwa, ikisababisha makosa wakati wa mchakato wa urejeshaji. Kuongeza vitunguu kwa mikono kunaweza kutatua hali hiyo.",
"increaseCounterHint": "Una uhakika unataka kuongeza vitunguu? Hii inapaswa kufanywa tu ikiwa una uhakika kwamba vitunguu haviko kwa usawazishaji.",
Expand Down Expand Up @@ -56,7 +57,6 @@
"confirmSeed": "Tafadhali thibitisha mbegu yako kwa kuingiza neno sahihi.",
"aboutToLeaveTo": "Unaenda kuondoka",
"accept": "Kubali",
"addEnutsMint": "Tumia sarafu ya eNuts",
"amount": "Kiasi",
"back": "Rudi",
"backToDashboard": "Rudi kwenye dashibodi",
Expand Down Expand Up @@ -122,7 +122,6 @@
"from": "kutoka",
"fromMint": "kutoka kwa sarafu ifuatayo",
"german": "Kijerumani",
"getStarted": "Anza",
"githubIssues": "Ripoti matatizo kwenye Github",
"shareOrReport": "Shiriki maoni au ripoti matatizo",
"historyDeleted": "Historia imefutwa",
Expand Down Expand Up @@ -168,8 +167,6 @@
"selectMint": "Chagua sarafu ya kutuma kutoka",
"sendEcash": "Tuma Ecash",
"share": "Shiriki",
"smthWrong": "Kitu kimekwenda vibaya",
"startHint": "Unaweza kutumia sarafu ya eNuts iliyopo au kuongeza sarafu nyingine ya desturi.",
"submitPaymentReq": "Kutoa pesa",
"to": "kwa",
"today": "Leo",
Expand All @@ -180,7 +177,6 @@
"unknownType": "Aina isiyojulikana",
"version": "Toleo",
"willDoLater": "Nitafanya baadaye",
"addMintUrl": "Ongeza URL ya sarafu",
"yes": "Ndio",
"invalidPubKey": "Kitufe cha umma batili!",
"walletLocked": "Pochi imefungwa",
Expand Down
Loading

0 comments on commit 36f30f6

Please sign in to comment.