Repository navigation
Fixes #29964 - Add memory allocation react component - #7794
Conversation
There was a problem hiding this comment.
Unexpected missing end-of-source newline no-missing-end-of-source-newline
|
Issues: #29964 |
There was a problem hiding this comment.
I do not see it being used anywhere...
There was a problem hiding this comment.
nit: maybe useState(MBFormat) since it is defined a couple of lines above?
|
Nice, seems to work as expected. |
99abf7d to
01106e6
Compare
|
[test foreman] |
1 similar comment
|
[test foreman] |
|
[test foreman] |
| "emotion-theming": "^10.0.27", | ||
| "intl": "~1.2.5", | ||
| "jed": "^1.1.1", | ||
| "rc-input-number": "^5.1.0", |
There was a problem hiding this comment.
Looks like they just released v6 a few days ago
|
@yifatmakias, this pull request is currently not mergeable. Please rebase against the develop branch and push again. If you have a remote called 'upstream' that points to this repository, you can do this by running: This message was auto-generated by Foreman's prprocessor |
|
[test katello] |
1 similar comment
|
[test katello] |
sharvit
left a comment
There was a problem hiding this comment.
Thanks @yifatmakias, looks good and works as expected 👍
There was a problem hiding this comment.
Looks like this snap is the same as the default props snap. This one should have an error message
There was a problem hiding this comment.
I checked the error and warning states in a different way. Let me know if it looks ok now.
|
@amirfefer did @yifatmakias addressed all your comments? |
|
[test foreman] |
|
@MariaAga I rebased and added to .eslintrc file. let me know if it is ok :) |
There was a problem hiding this comment.
@yifatmakias Looks and works great 👍
just a few small issues
There was a problem hiding this comment.
nit: An inequation between a number with a null gives an odd result i.e 5 > null returns true, you can find an interesting explanation here, therefore changing the default props values (for numbers) to undefined instead of null would be better.
5 > null // true, that's why we need maxValue != null
5 < null // false
5 > undefined // false, here we don't need the maxValue != null
5 < undefined // falseThere was a problem hiding this comment.
validationState looks redundant here, it isn't being used in this effect anyway
amirfefer
left a comment
There was a problem hiding this comment.
Thanks, @yifatmakias 👍 awesome feature
tested and works as expected
In order to eventually replace the jquery-ui-spinner, there is a need to add a component for the memory allocation input in a form.
This issue is for the addition of the component.
There are still some issues regarding this PR that should be dealt with.