Page MenuHomePhabricator

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

Authored by atul on Jun 2 2022, 10:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 18, 11:07 AM
Unknown Object (File)
Sat, Aug 10, 4:41 PM
Unknown Object (File)
Sat, Aug 10, 4:41 PM
Unknown Object (File)
Sat, Aug 10, 4:41 PM
Unknown Object (File)
Sat, Aug 10, 4:41 PM
Unknown Object (File)
Sat, Aug 10, 4:41 PM
Unknown Object (File)
Sat, Aug 10, 4:36 PM
Unknown Object (File)
Thu, Jul 25, 6:35 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #13322)
This revision is now accepted and ready to land.Jun 3 2022, 4:38 AM

cherrypick before landing