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)
Mon, Sep 23, 11:32 PM
Unknown Object (File)
Fri, Sep 20, 2:44 PM
Unknown Object (File)
Fri, Sep 20, 2:44 PM
Unknown Object (File)
Fri, Sep 20, 2:44 PM
Unknown Object (File)
Fri, Sep 20, 2:43 PM
Unknown Object (File)
Fri, Sep 20, 2:27 PM
Unknown Object (File)
Thu, Sep 19, 1:36 AM
Unknown Object (File)
Sat, Aug 31, 11:19 AM

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.