diff --git a/package.json b/package.json index a41ff28..cc824a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minibits_wallet", - "version": "0.1.9-beta.19", + "version": "0.1.9-beta.20", "private": true, "scripts": { "android:clean": "cd android && ./gradlew clean", diff --git a/src/components/MemoInputCard.tsx b/src/components/MemoInputCard.tsx index 954f404..e991b19 100644 --- a/src/components/MemoInputCard.tsx +++ b/src/components/MemoInputCard.tsx @@ -4,6 +4,7 @@ import {spacing, useThemeColor} from '../theme' import {Button} from './Button' import {Card} from './Card' import {translate} from '../i18n' +import { verticalScale } from '@gocodingnow/rn-size-matters' interface MemoInputProps { memo: string @@ -67,17 +68,17 @@ const $memoContainer: ViewStyle = { const $memoCard: ViewStyle = { marginBottom: spacing.small, - minHeight: 80, + minHeight: verticalScale(80), } const $memoButton: ViewStyle = { - maxHeight: 50, + maxHeight: verticalScale(50), } const $memoInput: TextStyle = { flex: 1, borderRadius: spacing.small, - fontSize: 16, + fontSize: verticalScale(16), textAlignVertical: 'center', marginRight: spacing.small, } diff --git a/src/i18n_messages/en.json b/src/i18n_messages/en.json index 8453b76..76935f9 100644 --- a/src/i18n_messages/en.json +++ b/src/i18n_messages/en.json @@ -50,6 +50,7 @@ "copyFailParam": "Couldn't copy %{param}", "create": "Create", "disabled": "Disabled", + "edit": "Edit", "enabled": "Enabled", "hideMore": "Collapse", "import": "Import", @@ -142,7 +143,7 @@ "resetDescription": "This will wipe out all local data from storage and from the local database. Do only during development or testing.", "title": "Developer options", "transactions": "Sync recent transactions", - "transactionsDescription": "There are {{count}} recent transactions cached in the app's fast storage. Resetting will reload them from the app's database. Do only during development or testing." + "transactionsDescription": "There are %{count} recent transactions cached in the app's fast storage. Resetting will reload them from the app's database. Do only during development or testing." }, "errorScreen": { "friendlySubtitle": "Unfortunately, the Minibits app encountered an unexpected error. Please contact us at support@minibits.cash or raise an issue on Github.", @@ -293,7 +294,7 @@ "privateKey": "Private key", "privateNotePlaceholder": "Your private note", "profileMissingAddressError": "Missing address", - "profileMissingNostrAddress": "This profile does not have nostr address to send ecash to.", + "profileMissingNostrAddress": "This profile does not have a Nostr address.", "profileOnboarding": { "desc": "Your minibits.cash wallet address allows you to receive encrypted ecash over Nostr. Simultaneously, it serves as your Lightning address, enabling you to receive payments from any Lightning wallet or zaps on the Nostr social network.", "minibitsDesc": "Share your wallet address to receive encrypted ecash over Nostr. This also serves as your Lightning address, enabling you to receive payments from any Lightning wallet or zaps on the Nostr social network.", @@ -318,8 +319,8 @@ "receiveScreen": { "memoFromSender": "Memo from sender", "newMintsAdded": { - "one": "{{count}} mint has been added to your wallet", - "other": "{{count}} mints have been added to your wallet" + "one": "%{count} mint has been added to your wallet", + "other": "%{count} mints have been added to your wallet" }, "pasteoReceiveDescription": "Paste ecash token to receive it into your wallet.", "pasteToReceive": "Paste", @@ -419,8 +420,8 @@ "devOptions": "Developer options", "go": "Let's go!", "mintsCount": { - "one": "{{count}} mint", - "other": "{{count}} mints" + "one": "%{count} mint", + "other": "%{count} mints" }, "preferredUnit": "Preferred unit", "exchangeCurrency": "Balance conversion", diff --git a/src/screens/ContactDetailScreen.tsx b/src/screens/ContactDetailScreen.tsx index 8f49e3f..e5ccb1b 100644 --- a/src/screens/ContactDetailScreen.tsx +++ b/src/screens/ContactDetailScreen.tsx @@ -111,7 +111,6 @@ export const ContactDetailScreen: FC = observer( ? noteInputRef.current.focus() : false }, 100) - } const onCopyNpub = function () { @@ -155,7 +154,7 @@ export const ContactDetailScreen: FC = observer( const saveToPrivateContacts = async function () { if(contact.type === ContactType.PUBLIC) { contactsStore.addContact({...contact}) - toggleContactModal() + setIsContactModalVisible(false) setInfo('Contact saved.') } } @@ -183,7 +182,7 @@ export const ContactDetailScreen: FC = observer( const {type, name, display_name, npub, nip05, picture, about, lud16} = contact return ( - + {picture ? ( @@ -212,7 +211,7 @@ export const ContactDetailScreen: FC = observer( /> ) : ( = observer( } /> )} + {lud16 && ( - {lud16 && ( + <> - )} + text={lud16} + leftIcon='faBolt' + leftIconColor={colors.palette.orange200} + /> = observer( preset='tertiary' /> } - RightComponent={lud16 ? ( + RightComponent={