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, Nov 8, 4:00 AM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:52 PM
Unknown Object (File)
Sat, Nov 2, 2:48 PM
Unknown Object (File)
Oct 24 2024, 11:34 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