Page MenuHomePhabricator

[web] introduce secondaryHeaderButton prop to Modal component
ClosedPublic

Authored by ginsu on Oct 12 2023, 12:52 AM.
Tags
None
Referenced Files
F3522411: D9455.diff
Mon, Dec 23, 6:39 AM
F3521286: D9455.id31954.diff
Mon, Dec 23, 2:47 AM
F3521284: D9455.id32068.diff
Mon, Dec 23, 2:47 AM
F3521283: D9455.id32054.diff
Mon, Dec 23, 2:47 AM
F3521282: D9455.id31952.diff
Mon, Dec 23, 2:47 AM
F3521281: D9455.id31951.diff
Mon, Dec 23, 2:47 AM
F3519620: D9455.id.diff
Sun, Dec 22, 10:44 PM
Unknown Object (File)
Fri, Dec 20, 10:49 AM
Subscribers

Details

Summary

As a preliminary step to introducing the user profile menu component, we need to update the modal component. This diff makes two changes to the Modal component API

  1. Made the name prop optional
  2. introduce secondaryHeaderButton

Linear task: https://linear.app/comm/issue/ENG-5190/update-modal-component

Depends on D9447

Test Plan

Please see the screenshot where I pass in a UserProfileMenu component (will be introduced in a subsequent diff) as the secondaryHeaderButton

Screenshot 2023-10-12 at 3.56.54 AM.png (1×3 px, 938 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 12 2023, 1:00 AM
Harbormaster failed remote builds in B23200: Diff 31952!
ginsu requested review of this revision.Oct 12 2023, 1:26 AM
atul added inline comments.
web/modals/modal.react.js
88–104

Can memoize this guy

web/modals/user-profile/user-profile-modal.react.js
26

Glad we could clean this up

This revision is now accepted and ready to land.Oct 16 2023, 9:32 AM

address atul's comments + rebase before landing