Page MenuHomePhabricator

[Cashtab] [extension address passing p1] Move getCashtabProviderStatus function out of CashtabBase
ClosedPublic

Authored by bytesofman on Oct 19 2022, 17:08.

Details

Summary

T2550

Move getCashtabProviderStatus to cashtab-helpers

This function will need to be used in a new component to get the extension's address. So, it should be moved into a separate file where it can be imported by all components, rather than live in CashtabBase.tsx

Test Plan
cd web/cashtab-components
npm run storybook

Inspect the CashtabBadge --> Standard component. The blue button should read "Cashtab Pay"
Navigate to brave://extensions and disable all Cashtab browser extensions
Reload the storybook page and inspect the CashtabBadge --> Standard component. The blue button should read "Install Cashtab & Refresh"

Diff Detail

Repository
rABC Bitcoin ABC
Branch
extension-address-passing-stack
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20614
Build 40893: Build Diffcashtab-components-tests
Build 40892: arc lint + arc unit

Event Timeline

emack added a subscriber: emack.

FYI when going from not installed to installed, a page refresh doesn't seem to update it. Need to click onto another component before going back to Standard to see the Cashtab Pay button.

This revision is now accepted and ready to land.Oct 20 2022, 08:34