Page MenuHomePhabricator

[web] [refactor] thread-list-sidebar, active thread style to use classnames lib instead of ternary
ClosedPublic

Authored by benschac on Feb 7 2022, 8:42 AM.
Tags
None
Referenced Files
F3315142: D3126.diff
Tue, Nov 19, 3:07 PM
Unknown Object (File)
Sat, Nov 2, 4:05 AM
Unknown Object (File)
Sat, Nov 2, 4:05 AM
Unknown Object (File)
Sat, Nov 2, 4:04 AM
Unknown Object (File)
Sat, Nov 2, 3:59 AM
Unknown Object (File)
Thu, Oct 24, 11:59 PM
Unknown Object (File)
Thu, Oct 24, 11:59 PM
Unknown Object (File)
Thu, Oct 24, 11:58 PM

Details

Summary

use the classnames library rather than ternary.

Test Plan

Make sure active class still renders.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat added inline comments.
web/chat/chat-thread-list-sidebar.react.js
23–27

Personally, this just looks icky to me. I would pull out the property declaration into a separate line in front of the JSX. The fact that it doesn't change the indentation level of the enclosed block makes it more okay though

This revision is now accepted and ready to land.Feb 7 2022, 7:27 PM