Page MenuHomePhabricator

[web] Turn `InvalidUploadModal` into a functional component
ClosedPublic

Authored by atul on Jun 2 2022, 10:15 PM.
Tags
None
Referenced Files
F3393630: D4206.id13333.diff
Sat, Nov 30, 3:13 PM
F3393442: D4206.diff
Sat, Nov 30, 1:56 PM
Unknown Object (File)
Wed, Nov 27, 9:46 PM
Unknown Object (File)
Wed, Nov 27, 9:36 PM
Unknown Object (File)
Wed, Nov 27, 8:31 PM
Unknown Object (File)
Fri, Nov 8, 4:00 AM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:52 PM

Details

Summary

Was looking at this as part of the work to create a common Alert/Prompt component and noticed it might as well be a functional component... so made that change.

Test Plan

Dragged a random non-image file into the chat area and the InvalidUploadModal component was displayed as expected:

Screen Shot 2022-06-03 at 1.13.27 AM.png (456×726 px, 33 KB)

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Jun 2 2022, 10:22 PM
tomek added inline comments.
web/modals/chat/invalid-upload.react.js
11–17
This revision is now accepted and ready to land.Jun 3 2022, 4:38 AM

cherrypick before landing