HomePhabricator

[Cashtab] [extension address passing p1] Move getCashtabProviderStatus function…

Description

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

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"

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D12314

Details

Provenance
bytesofmanAuthored on Oct 19 2022, 17:05
bytesofmanPushed on Oct 27 2022, 17:10
Reviewer
Restricted Project
Differential Revision
D12314: [Cashtab] [extension address passing p1] Move getCashtabProviderStatus function out of CashtabBase
Parents
rABC1eea7a1143e3: [Cashtab] Add blacklist for token name and token ticker fields
Branches
Unknown
Tags
Unknown