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)
Fri, Dec 27, 11:49 AM
Unknown Object (File)
Fri, Dec 27, 5:43 AM
Unknown Object (File)
Fri, Dec 27, 5:43 AM
Unknown Object (File)
Fri, Dec 27, 5:42 AM
Unknown Object (File)
Fri, Dec 27, 5:42 AM
Unknown Object (File)
Fri, Dec 27, 5:15 AM
Unknown Object (File)
Sat, Nov 30, 3:13 PM
Unknown Object (File)
Sat, Nov 30, 1:56 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
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