Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Prop types fix#723

Open
alasarr wants to merge1 commit intoairship-3.0
base:airship-3.0
Choose a base branch
Loading
fromalasarr/prop-types-fix
Open

Conversation

alasarr
Copy link
Contributor

No description provided.

@alasarralasarr requested a review fromneokoreNovember 4, 2020 06:38
@@ -107,7 +107,7 @@ CategoryWidgetUI.propTypes = {
data: PropTypes.arrayOf(
PropTypes.shape({
category: PropTypes.string.isRequired,
value: PropTypes.number.isRequired
value: PropTypes.number
Copy link
Contributor

@neokoreneokoreNov 4, 2020
edited
Loading

Choose a reason for hiding this comment

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

Here we can useoneOfType and allow number/string/null
After checking the docs again, I see that this is the recommended way fornull (plusundefined and so)
I agree with the change.

]).isRequired,
unit: PropTypes.string.isRequired
]),
unit: PropTypes.string
Copy link
Contributor

@neokoreneokoreNov 4, 2020
edited
Loading

Choose a reason for hiding this comment

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

same here, until we want to allow empty units using this format, in that case, ok
Maybe here I'll rather improve the way to paint the unit, to skip it in case of not existing, because right now it could leave an empty space before the value.

Copy link
Contributor

@neokoreneokore left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@neokoreneokoreneokore approved these changes

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@alasarr@neokore

[8]ページ先頭

©2009-2025 Movatter.jp