HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Apr 3 2024, 04:05
bytesofmanPushed on Apr 3 2024, 11:27
Reviewer
Restricted Project
Differential Revision
D15864: [Cashtab] Deprecate hooks directory and move hooks to where they are used
Parents
rABC02b4774d7c24: [net] Consistently check for existing connection based on ip:port
Branches
Unknown
Tags
Unknown