-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CIO-312 Remove similar block #318
Conversation
Generated by 🚫 dangerJS |
Please review @jwu910, can I just remove props on similar block ? |
f8858c5
to
b26c9e0
Compare
Just started reviewing :) |
src/utils/interface.js
Outdated
width: '100%', | ||
}); | ||
|
||
const messageCenter = blessed.log(themeCommon(2, 5)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the comment above we can keep this as
const blessedObject = blessed.element({
...baseTheme,
bottom: 2,
height: 5,
});
Let me know what you think! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I though that bottom
and height
also noticed as a similar, so I localize using a function which passing bottom
and height
as a params. Since they have different value.
That should be simply if only using an object. Thanks for suggestion @jwu910 !. I'll fix then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense! Don't worry, I just think that the flow of understanding the code for future maintainability may be more straight forward if we just use a plain object for now.
By the way @sog01 my development branch was just updated, be sure to get the changes! |
Sure @jwu910, I'll be careful |
4061f16
to
6d32101
Compare
Please check again @jwu910 |
Just started reviewing :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@sog01 One last thing, Can you add a changelog entry for your fix? |
@jwu910 sure, may I also change date into today ? Since this changed happen right now. |
@sog01 You don't need to include a date on the changelog entry. Just the summary of work, you can place it under the "Unreleased" header. You can look at the other changelog entires for reference. |
6d32101
to
183b581
Compare
Okay please check again @jwu910 |
@sog01 Your entry in the Changelog should fall under Unreleased because this issue is not yet released. |
183b581
to
ac72b37
Compare
ac72b37
to
fb15847
Compare
Sorry my bad @jwu910 🙏, It should be okay right now :) |
Fixes #312
Isolate common style
Description
Isolate common style at 3 exported
const
which arestatusBarContainer
,statusBar
andmessageCenter
Motivation and Context
To dry up code, Fixes #312.
Types of changes
Checklist: