-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Conversation
Features
Tests
Documentation
Bug FixesContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
import ShowIf from '..'; | ||
|
||
describe('<ShowIf />', () => { | ||
it('should render the children in the DOM when isTrue is false', () => { |
There was a problem hiding this comment.
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.
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 🌎 |
src/components/ShowIf/index.d.ts
Outdated
import { ReactNode } from 'react'; | ||
import { BaseProps } from '../types'; | ||
|
||
type AnimationName = 'fade' | 'slide'; |
There was a problem hiding this comment.
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
Code Climate has analyzed commit c95ecf8 and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Changes proposed in this PR:
Added ShowIf component
I have followed (at least) the PR section of the contributing guide.