Page MenuHomePhabricator

[Cashtab] Deprecate hooks directory and move hooks to where they are used
ClosedPublic

Authored by bytesofman on Apr 3 2024, 04:06.

Details

Summary

Doesn't really make sense that useWallet is not in src/wallet. Likewise, useWindowDimensions is only used by Receive. It might make sense to move that to helpers later but for now it's just a Receive thing.

Get rid of now-empty hooks folder which is not really useful organization.

Test Plan

npm test, grep -r "hooks/useWallet" src/ and no output

Diff Detail

Repository
rABC Bitcoin ABC
Branch
hooks-reorg
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28277
Build 56098: Build Diffcashtab-tests
Build 56097: arc lint + arc unit