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 required prop to Slider component #2297

Merged
merged 3 commits into from
Oct 7, 2021

Conversation

HellWolf93
Copy link
Collaborator

fix: #2295

Changes proposed in this PR:

@commit-lint
Copy link

commit-lint bot commented Oct 7, 2021

Features

  • add the required prop to Slider component (5bc92cc)

Documentation

  • improve Slider components docs (825e587)

Contributors

HellWolf93, TahimiLeonBravo

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

expect(component.find('input').prop('required')).toBe(true);
});

it('should render required asterisk when required prop is true', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 3 locations. Consider refactoring.

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

Visit the preview URL for this PR (updated for commit 1ecf873):

https://react-rainbow--pr2297-slider-add-required-1xpt0fmo.web.app

(expires Thu, 14 Oct 2021 14:10:58 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@HellWolf93 HellWolf93 changed the title Slider add required feat: add required prop to Slider component Oct 7, 2021
@codeclimate
Copy link

codeclimate bot commented Oct 7, 2021

Code Climate has analyzed commit 1ecf873 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 1

View more on Code Climate.

@TahimiLeonBravo TahimiLeonBravo merged commit 187b120 into master Oct 7, 2021
@TahimiLeonBravo TahimiLeonBravo deleted the slider-add-required branch October 7, 2021 14:24
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 the required prop to the slider component
3 participants