8000 [changed] collapsable => collapsible property by AlexKVal · Pull Request #603 · react-bootstrap/react-bootstrap · GitHub
[go: up one dir, main page]

Skip to content

[changed] collapsable => collapsible property #603

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

Closed
wants to merge 1 commit into from

Conversation

AlexKVal
Copy link
Member
@AlexKVal AlexKVal commented May 2, 2015

Discussion is here #425.

Components are involved:

  • Nav
  • Panel
  • CollapsibleNav

Current property type checking for collapsable in PanelGroup
is needless and has been removed.

Closes #425

8000
Discussion is here react-bootstrap#425.

Components are involved:
- Nav
- Panel
- CollapsibleNav

Current property type checking for `collapsable` in `PanelGroup`
is needless and has been removed.
@@ -144,15 +147,16 @@ const Panel = React.createClass({

renderHeading() {
let header = this.props.header;
let collapsible = this.props.collapsible || this.props.collapsable;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't know if we should be using "const" when possible.

@dozoisch
Copy link
Member
dozoisch commented May 2, 2015

Looks good!

@AlexKVal
Copy link
Member Author
AlexKVal commented May 3, 2015
< 8000 table class="d-block user-select-contain" data-paste-markdown-skip>

Agree. I don't have enough experience with ES6 yet 😉

My thoughts were: 'It is a local scope, hence I should use let instead of var',
and I've seen let classes = ... from other places and thought about one coding style.
But I hadn't given a thought about const.

Now looking at it again I see that if we change let collapsible => const collapsible,
then it has to be changed in other places too.

E.g. https://github.com/AlexKVal/react-bootstrap/blob/f1a5d04a23/src/CollapsibleNav.js#L62
https://github.com/AlexKVal/react-bootstrap/blob/f1a5d04a23/src/CollapsibleNav.js#L104
https://github.com/AlexKVal/react-bootstrap/blob/f1a5d04a23/src/CollapsibleNav.js#L118
and so on.

@mtscout6 what do you think about it ? Sure I will rewrite it all with no delay if it would need.

@AlexKVal
Copy link
Member Author
AlexKVal commented May 3, 2015

There will be merge conflict between #603 and #608 here
603:R6
608:L6

If both are approved and any is merged I'll promptly fix merging conflict with another PR of course.

(BTW I don't know is it possible to resolve such merge conflicts between two PRs before they are merged into master ? What is the best practice in such case ?)

@AlexKVal AlexKVal closed this May 3, 2015
@AlexKVal AlexKVal deleted the collapsibleProp branch May 3, 2015 20:35
@AlexKVal AlexKVal restored the collapsibleProp branch May 3, 2015 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapsable => collapsible
2 participants
0