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: implement ShowIf component #2300

Merged
merged 8 commits into from
Oct 24, 2021
Merged

Conversation

HellWolf93
Copy link
Collaborator

Changes proposed in this PR:

@commit-lint
Copy link

commit-lint bot commented Oct 12, 2021

Features

  • implement ShowIf component (89da1a7)

Tests

  • add tests to getElementDimensions (6261767)

Documentation

  • add accordion example to ShowIf (9ef82d3)
  • update examples (914bcfd)
  • add new examples to ShowIf (dc4d29d)

Bug Fixes

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

import ShowIf from '..';

describe('<ShowIf />', () => {
it('should render the children in the DOM when isTrue is false', () => {
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 2 locations. Consider refactoring.

@github-actions
Copy link

github-actions bot commented Oct 12, 2021

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

https://react-rainbow--pr2300-implement-showif-fv5p51hd.web.app

(expires Thu, 28 Oct 2021 20:02:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

import { ReactNode } from 'react';
import { BaseProps } from '../types';

type AnimationName = 'fade' | 'slide';

Choose a reason for hiding this comment

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

here we need to specify if the slide will be from right, left, top, bottom
we don't need to set all of them now, but what will be used them let's specify it

@codeclimate
Copy link

codeclimate bot commented Oct 21, 2021

Code Climate has analyzed commit c95ecf8 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit 1159cad into master Oct 24, 2021
@LeandroTorresSicilia LeandroTorresSicilia deleted the implement-ShowIf branch October 24, 2021 16: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.

None yet

3 participants