Skip to content

Commit

Permalink
feature(resolver): wallet-specific notice
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Jan 10, 2024
1 parent 06e1a75 commit 4359361
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 66 deletions.
7 changes: 5 additions & 2 deletions apps/wallet-mobile/src/TxHistory/TxHistoryNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {useNavigation} from '@react-navigation/native'
import {createStackNavigator} from '@react-navigation/stack'
import {useStorage} from '@yoroi/common'
import {resolverApiMaker, resolverManagerMaker, ResolverProvider, resolverStorageMaker} from '@yoroi/resolver'
import {
milkTokenId,
Expand Down Expand Up @@ -66,6 +67,7 @@ export const TxHistoryNavigator = () => {
const strings = useStrings()
const wallet = useSelectedWallet()
const walletName = useWalletName(wallet)
const storage = useStorage()

// modal
const [isModalInfoVisible, setIsModalInfoVisible] = React.useState(false)
Expand Down Expand Up @@ -98,9 +100,10 @@ export const TxHistoryNavigator = () => {
},
csl: CardanoMobile,
})
const resolverStorage = resolverStorageMaker()
const walletStorage = storage.join(`wallet/${wallet.id}/`)
const resolverStorage = resolverStorageMaker({storage: walletStorage})
return resolverManagerMaker(resolverStorage, resolverApi)
}, [])
}, [storage, wallet.id])

// claim
const claimApi = React.useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,239 +4,239 @@
"defaultMessage": "!!!Receive",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 347,
"line": 350,
"column": 16,
"index": 12964
"index": 13141
},
"end": {
"line": 350,
"line": 353,
"column": 3,
"index": 13053
"index": 13230
}
},
{
"id": "swap.swapScreen.swapTitle",
"defaultMessage": "!!!Swap",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 351,
"line": 354,
"column": 13,
"index": 13068
"index": 13245
},
"end": {
"line": 354,
"line": 357,
"column": 3,
"index": 13141
"index": 13318
}
},
{
"id": "swap.swapScreen.swapFrom",
"defaultMessage": "!!!Swap from",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 355,
"line": 358,
"column": 17,
"index": 13160
"index": 13337
},
"end": {
"line": 358,
"line": 361,
"column": 3,
"index": 13237
"index": 13414
}
},
{
"id": "swap.swapScreen.swapTo",
"defaultMessage": "!!!Swap to",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 359,
"line": 362,
"column": 15,
"index": 13254
"index": 13431
},
"end": {
"line": 362,
"line": 365,
"column": 3,
"index": 13327
"index": 13504
}
},
{
"id": "swap.swapScreen.slippageTolerance",
"defaultMessage": "!!!Slippage Tolerance",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 363,
"line": 366,
"column": 21,
"index": 13350
"index": 13527
},
"end": {
"line": 366,
"line": 369,
"column": 3,
"index": 13445
"index": 13622
}
},
{
"id": "swap.swapScreen.selectPool",
"defaultMessage": "!!!Select pool",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 367,
"line": 370,
"column": 14,
"index": 13461
"index": 13638
},
"end": {
"line": 370,
"line": 373,
"column": 3,
"index": 13542
"index": 13719
}
},
{
"id": "components.send.sendscreen.title",
"defaultMessage": "!!!Send",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 371,
"line": 374,
"column": 13,
"index": 13557
"index": 13734
},
"end": {
"line": 374,
"line": 377,
"column": 3,
"index": 13637
"index": 13814
}
},
{
"id": "components.send.addressreaderqr.title",
"defaultMessage": "!!!Scan QR code address",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 375,
"line": 378,
"column": 18,
"index": 13657
"index": 13834
},
"end": {
"line": 378,
"line": 381,
"column": 3,
"index": 13758
"index": 13935
}
},
{
"id": "components.send.selectasset.title",
"defaultMessage": "!!!Select asset",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 379,
"line": 382,
"column": 20,
"index": 13780
"index": 13957
},
"end": {
"line": 382,
"line": 385,
"column": 3,
"index": 13869
"index": 14046
}
},
{
"id": "components.send.listamountstosendscreen.title",
"defaultMessage": "!!!Selected tokens",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 383,
"line": 386,
"column": 26,
"index": 13897
"index": 14074
},
"end": {
"line": 386,
"line": 389,
"column": 3,
"index": 14001
"index": 14178
}
},
{
"id": "components.send.editamountscreen.title",
"defaultMessage": "!!!Edit amount",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 387,
"line": 390,
"column": 19,
"index": 14022
"index": 14199
},
"end": {
"line": 390,
"line": 393,
"column": 3,
"index": 14115
"index": 14292
}
},
{
"id": "components.send.confirmscreen.title",
"defaultMessage": "!!!Confirm",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 391,
"line": 394,
"column": 16,
"index": 14133
"index": 14310
},
"end": {
"line": 394,
"line": 397,
"column": 3,
"index": 14219
"index": 14396
}
},
{
"id": "components.receive.receivescreen.infoText",
"defaultMessage": "!!!Share this address to receive payments. To protect your privacy, new addresses are generated automatically once you use them.",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 395,
"line": 398,
"column": 19,
"index": 14240
"index": 14417
},
"end": {
"line": 401,
"line": 404,
"column": 3,
"index": 14478
"index": 14655
}
},
{
"id": "global.confirmationTransaction",
"defaultMessage": "!!!Confirm transaction",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 402,
"line": 405,
"column": 27,
"index": 14507
"index": 14684
},
"end": {
"line": 405,
"line": 408,
"column": 3,
"index": 14600
"index": 14777
}
},
{
"id": "scan.title",
"defaultMessage": "!!!Please scan a QR code",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 406,
"line": 409,
"column": 13,
"index": 14615
"index": 14792
},
"end": {
"line": 409,
"line": 412,
"column": 3,
"index": 14690
"index": 14867
}
},
{
"id": "claim.showSuccess.title",
"defaultMessage": "!!!Success",
"file": "src/TxHistory/TxHistoryNavigator.tsx",
"start": {
"line": 410,
"line": 413,
"column": 25,
"index": 14717
"index": 14894
},
"end": {
"line": 413,
"line": 416,
"column": 3,
"index": 14791
"index": 14968
}
}
]

0 comments on commit 4359361

Please sign in to comment.