Page MenuHomePhabricator

[web] [refactor] currentModal --> modal
ClosedPublic

Authored by benschac on Feb 14 2022, 9:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 3:20 PM
Unknown Object (File)
Thu, Oct 17, 9:14 PM
Unknown Object (File)
Thu, Oct 17, 9:14 PM
Unknown Object (File)
Thu, Oct 17, 9:14 PM
Unknown Object (File)
Thu, Oct 17, 9:14 PM
Unknown Object (File)
Thu, Oct 17, 9:12 PM
Unknown Object (File)
Sep 20 2024, 6:14 AM
Unknown Object (File)
Sep 20 2024, 1:47 AM

Details

Summary

Part of moving modal state to a context and hook. There is only ever one modal shown at a time.

The rest of the currentModal props will be removed in upcoming diffs when the new hook is applied/used.

Test Plan

Make sure modals still work

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

There is only ever one modal shown at a time.

Is it possible that this assumption may change in the future? Will the changes we plan on making affect that possibility?

This revision is now accepted and ready to land.Feb 14 2022, 12:37 PM
This revision now requires review to proceed.Feb 14 2022, 12:37 PM
This revision is now accepted and ready to land.Feb 14 2022, 9:35 PM
In D3194#85198, @atul wrote:

There is only ever one modal shown at a time.

Is it possible that this assumption may change in the future? Will the changes we plan on making affect that possibility?

Having two modals shown at once is kinda weird UX. I haven't seen it in a while. I'm open to changing it if you think it could change.

At that point maybe second modal would be better?