Skip to content

Conversation

AlexKVal
Copy link
Member

Address eslint warnings.

DRY refactor the code. Move all general logic into mixin.
As a sidenote: the main logic of this project is in the LinkMixin mixin now.

LinkMixin is not a public API in src/index.js
therefore getClassName() method is not public too
and because it is used nowhere it has been removed.

And as a consequence classnames dependency has been removed also.

Closes #75

@taion
Copy link
Member

taion commented Jun 11, 2015

Very nice. LGTM. Maybe rename the method to getLinkProps though, to make it more clear what's going on?

Address eslint warnings.

DRY refactor the code. Move all general logic into mixin.

`LinkMixin` is not a public API in `src/index.js`
therefore `getClassName()` method is not public too
and because it is used nowhere it has been removed.

And as a consequence `classnames` dependency has been removed also.
@AlexKVal
Copy link
Member Author

Maybe rename the method to getLinkProps

Sure. 👍
Thank you for the help with naming. It is always not so simple for a foreigner 😉

@AlexKVal AlexKVal mentioned this pull request Jun 18, 2015
taion added a commit that referenced this pull request Jun 18, 2015
Remove 'classnames' dependency as a result of refactoring.
@taion taion merged commit 2166bae into react-bootstrap:master Jun 18, 2015
@AlexKVal AlexKVal deleted the eslint branch June 20, 2015 20:10
@AlexKVal AlexKVal mentioned this pull request Jul 7, 2015
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.

3 participants