Skip to content

Commit

Permalink
fix: fix correct amount FormStatus / GlobalStatus messages to show up
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Oct 19, 2021
1 parent 88f003f commit 63d04ee
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export default class FormStatus extends React.PureComponent {
status_id,
{
state,
status_id,
// status_id,
item: {
status_id: this.state.id,
text,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import PropTypes from 'prop-types'
import Input, { inputPropTypes } from '../input/Input'

export const maskedPropTypes = {
mask: PropTypes.oneOfType([
PropTypes.object,
PropTypes.array,
PropTypes.func,
]),
number_mask: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool,
PropTypes.object,
]),
currency_mask: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool,
PropTypes.object,
]),
mask_options: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
number_format: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
locale: PropTypes.string,
as_currency: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
as_number: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
as_percent: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
show_mask: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
show_guide: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
pipe: PropTypes.func,
keep_char_positions: PropTypes.oneOfType([
PropTypes.string,
PropTypes.bool,
]),
placeholder_char: PropTypes.string,
inner_ref: PropTypes.object,

on_change: PropTypes.func,
on_submit: PropTypes.func,
on_focus: PropTypes.func,
on_blur: PropTypes.func,
on_submit_focus: PropTypes.func,
on_submit_blur: PropTypes.func,

...inputPropTypes,
}

export const maskedDefaultProps = {
...Input.defaultProps,

mask: [],
number_mask: null,
currency_mask: null,
mask_options: null,
number_format: null,
as_currency: null,
as_number: null,
as_percent: null,
locale: null,
show_mask: false,
show_guide: true,
pipe: null,
keep_char_positions: false,
placeholder_char: '_',
inner_ref: null,

on_change: null,
on_submit: null,
on_focus: null,
on_blur: null,
on_submit_focus: null,
on_submit_blur: null,
}

0 comments on commit 63d04ee

Please sign in to comment.