This differential refactors CreateSIWEBackupMessage component so that most of its code and logic can be resused. It is necessary since next diff will
introduce new component that renders the same UI to already logged in SIWE users to create backup message if it is not in the database.
Details
- Flow
- Test that already introduced functionality wasn't broken.
Diff Detail
- Repository
- rCOMM Comm
- Branch
- marcin/eng-5267
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/account/registration/siwe-backup-message-creation.react.js | ||
---|---|---|
165 | Nit: I'd reverse the order of these, to match the order in which they are defined in the file |
I thought putting an invariant here was a reasonable trade-off vs. refactoring the types in the fullStateSyncActionType payload (specifically StateSyncFullActionPayload which is derived from ClientFullStateSync which is derived from BaseFullStateSync) which are used across clients and keyserver.
Open to re-exploring if that would be preferred.