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

Rayan #21

Merged
merged 4 commits into from
Dec 3, 2021
Merged

Rayan #21

merged 4 commits into from
Dec 3, 2021

Conversation

rayanfer32
Copy link
Owner

Description

Type of change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Area of change

  • Frontend
  • Backend

Checklist:

  • My code follows the style guidelines of this project
  • I ran npm run format/yarn format before commit
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation where needed
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings
  • I have updated develop and merged to my branch before submitting pull request
  • My pull request generate no conflicts with develop or main branch
  • I requested code review from other team members

Related Issue

  • none

Proposed Changes

  • none

Additional Info

  • none

Screenshots

Original Updated

@vercel
Copy link

vercel bot commented Dec 2, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rayanfer32/nexus-explorer-next/DLckaZ4AgeZiDPAhsvJ4yMJvtk9Y
✅ Preview: https://nexus-explorer-next-git-rayan-rayanfer32.vercel.app

Copy link
Collaborator

@shrivatsabhat shrivatsabhat left a comment

Choose a reason for hiding this comment

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

Don't give optional prop as strictly passable proptypes


Rail.propTypes = {
scrollSpeed: PropTypes.number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Scroll speed is optional
Don't give proptype as strictly required prop

Copy link
Owner Author

Choose a reason for hiding this comment

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

yes i havent made it .isRequired

import PropTypes from 'prop-types';

SearchBar.propTypes = {
type: PropTypes.oneOf(['long']),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here also prop type and long are optional prop,

Copy link
Owner Author

Choose a reason for hiding this comment

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

how do i do that


SmallCard.propTypes = {
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
sublabel: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sublabel is optional prop

@rayanfer32
Copy link
Owner Author

I haven't kept the props as isRequired , that means they are optional only ryt.

@rayanfer32 rayanfer32 merged commit 1c78dd7 into develop Dec 3, 2021
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.

2 participants