HomePhabricator

[Cashtab-v2] Address linting errors throughout the app

Description

[Cashtab-v2] Address linting errors throughout the app

Summary:
Addressed linting errors throughout the app.

App.js:
Import proptypes
Add App.defaultProps func
Add prop types check

ProtectableComponentWrapper:
Import proptypes
Add ProtectableComponentWrapper default props func
Add prop types check

QRCode:
Import proptypes
delete '...otherProps'
Add QRCode default props func
Add prop types check

ScanQRCode:
Delete eslint-disable-next-line

Configure.js:
Delete eslint-disable react-hooks/exhaustive-deps

Tx:
Remove unused CSS import
Remove unused styled components:
SentLabel
GenesisLabel
CashtabMessageLabel
MessageLabel
ReplyMessageLabel

TxHistory:
Removed unused styled-components import

Send:
Remove unused button import
Remove unused handleOneToManyXECSend func & related dev comments

CreateTokenForm:
Remove unused TokenCollapse import
Remove unused notification & collapse imports
console.log file param in transformToTokenIcon func to avoid unused error

useWallet:
Remove eslint-disable react-hooks / exhaustive-deps

cashMethods:
Remove unused isValidUtxo import

context.js:
Add proptypes import
Add WalletProvider & AuthenticationProvider default props func
Add proptypes check for WalletProvider & AuthenticationProvider

GoogleAnalytics:
console.log options param to avoid unused error

Test Plan:
cd web/cashtab-v2
npm start
observe linting errors and warnings

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
kieran709Authored on Mar 25 2022, 19:09
kieran709Pushed on Mar 28 2022, 15:57
Reviewer
Restricted Project
Differential Revision
D11265: [Cashtab-v2] Address linting errors throughout the app
Parents
rABC1374e58b31fb: [Cashtab-v2] Webpack 5 CSS patch: ant-descriptions-title
Branches
Unknown
Tags
Unknown