Skip to content
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

feat: add variant prop on the Tabset component #1899

Conversation

rgah2107
Copy link
Collaborator

@rgah2107 rgah2107 commented Oct 9, 2020

fix: #1880

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Oct 9, 2020

Features

  • add variant prop on the Tabset component (c8ca1af)

Bug Fixes

Contributors

@rgah2107, @LeandroTorresSicilia

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

src/components/Tabset/__test__/tabset.spec.js Outdated Show resolved Hide resolved
src/components/Tabset/__test__/tabset.spec.js Outdated Show resolved Hide resolved
src/components/Tab/styled/button.js Show resolved Hide resolved
src/components/Tabset/index.js Show resolved Hide resolved
src/components/Tabset/utils.js Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Oct 12, 2020

Code Climate has analyzed commit a26a624 and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 4

View more on Code Climate.

box-sizing: border-box;
}
${props =>
(props.variant === 'card' || !variants.includes(props.variant)) &&

Choose a reason for hiding this comment

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

there is not much implication since there are only two elements in the array but here you can use a map instead, thus avoiding the iteration

@LeandroTorresSicilia LeandroTorresSicilia merged commit 8073f2b into nexxtway:master Oct 12, 2020
@commit-lint commit-lint bot mentioned this pull request Oct 21, 2020
1 task
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.

feat: add variant prop on the Tabset component
2 participants