Page MenuHomePhabricator

[web] [refactor] [ENG-716] destructure props in confirm-leave-thread-modal
ClosedPublic

Authored by benschac on Apr 4 2022, 12:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 9:38 AM
Unknown Object (File)
Sat, Nov 16, 8:11 AM
Unknown Object (File)
Thu, Nov 14, 4:35 PM
Unknown Object (File)
Sun, Nov 10, 11:43 PM
Unknown Object (File)
Fri, Nov 8, 7:31 AM
Unknown Object (File)
Sun, Nov 3, 3:20 PM
Unknown Object (File)
Sun, Nov 3, 3:20 PM
Unknown Object (File)
Sun, Nov 3, 3:20 PM

Details

Diff Detail

Repository
rCOMM Comm
Branch
leave-channel-thread
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
web/modals/threads/confirm-leave-thread-modal.react.js
18

Personally find the second-level destructuring syntax to be weird, but that's how it is.

Would maybe prefer like

const {threadInfo, onClose, onConfirm} = props;
const {uiName} = threadInfo;

but it doesn't matter

This revision is now accepted and ready to land.Apr 5 2022, 12:21 PM
This revision was landed with ongoing or failed builds.Apr 5 2022, 1:29 PM
This revision was automatically updated to reflect the committed changes.