-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5b2623
commit 5ca0641
Showing
12 changed files
with
69 additions
and
129 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
apps/wallet-mobile/src/features/Notifications/useCases/common/mocks.ts
This file was deleted.
Oops, something went wrong.
9 changes: 8 additions & 1 deletion
9
apps/wallet-mobile/src/features/Notifications/useCases/common/notification-manager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import {mountAsyncStorage} from '@yoroi/common/src' | ||
import {mountAsyncStorage} from '@yoroi/common' | ||
import {notificationManagerMaker} from '@yoroi/notifications' | ||
import {displayNotificationEvent} from './notifications' | ||
import {Notifications} from '@yoroi/types' | ||
import {transactionReceivedSubject} from './transaction-received-notification' | ||
|
||
const appStorage = mountAsyncStorage({path: '/'}) | ||
|
||
export const notificationManager = notificationManagerMaker({ | ||
eventsStorage: appStorage.join('events/'), | ||
configStorage: appStorage.join('settings/'), | ||
display: displayNotificationEvent, | ||
subscriptions: { | ||
[Notifications.Trigger.TransactionReceived]: transactionReceivedSubject, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.