no functionality changes. Just keeping the component consistent with the rest of the codebase and destructuring props.
Details
Details
message preview component still works like it did before changes.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/chat/message-preview.react.js | ||
---|---|---|
24–25 ↗ | (On Diff #10627) | If we're always destructuring in the first statement, we can as well destructure as a function argument. What do you think about taking this approach in the future? |
36 ↗ | (On Diff #10627) | messageInfoProps doesn't sound like a useful name... maybe originalMessageInfo? |
web/chat/message-preview.react.js | ||
---|---|---|
24–25 ↗ | (On Diff #10627) | We've stuck with the current pattern pretty consistently in the codebase. I'm for sticking with the current convention. IMO i like it more. If we as a team want to change it lets agree and then codemod it everywhere: https://github.com/facebookarchive/codemod. Or whatever has replaced codemod. |