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 currency input component #2468

Merged
merged 3 commits into from
Oct 8, 2022

Conversation

yvmunayev
Copy link
Contributor

fix: #2467

Changes proposed in this PR:

@nexxtway/react-rainbow

@commit-lint
Copy link

commit-lint bot commented Oct 7, 2022

Features

  • add currency input component (c3a24d8)
  • add currency input prop size (6fb65be)

Contributors

yvmunayev

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

@codeclimate
Copy link

codeclimate bot commented Oct 7, 2022

Code Climate has analyzed commit 6fb65be and detected 11 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 5
Duplication 6

View more on Code Climate.

@github-actions
Copy link

github-actions bot commented Oct 7, 2022

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

https://react-rainbow--pr2468-feat-add-currency-in-coeu1fdp.web.app

(expires Fri, 14 Oct 2022 20:17:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

const formattedInteger = formatInteger(stringInteger, locale, options);

return stringValue.indexOf('.') !== -1
? `${formattedInteger}${decimalSeparator}${stringDecimal || ''}`

Choose a reason for hiding this comment

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

this manual construction maybe does not work with other locales

} = useReduxForm(props);

const inputRef = useRef();
const inputId = useUniqueIdentifier('counter-input');

Choose a reason for hiding this comment

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

counter-input?

@LeandroTorresSicilia LeandroTorresSicilia merged commit c18120a into master Oct 8, 2022
@LeandroTorresSicilia LeandroTorresSicilia deleted the feat-add-currency-input-component branch October 8, 2022 16:52
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 currency input component
2 participants