Page MenuHomePhabricator

[Cashtab] fix error in console when user clicks Create eToken
AbandonedPublic

Authored by kieran709 on Sep 26 2022, 18:22.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

Related to T2593. Removed transformFile prop and related function from Dragger component in CreateTokenForm. According to the error, the component should simply use the beforeUpload prop directly. This related PR (https://github.com/ant-design/ant-design/pull/28365), describes the following: "The original beforeUpload already supports the transformFile capability and removes related documents. This also fixes an issue where the preview function would not use transformFile transformed files."

Test Plan

cd web/cashtab && npm start
navigate to create eToken screen
observe that the error does not fire
drag an image file into the Dragger component
The image should upload.
Drag an unsupported filetype over the Dragger component
A modal should appear instructing user to upload only jpg & png files.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20183
Build 40051: Build Diffcashtab-tests
Build 40050: arc lint + arc unit