-
Notifications
You must be signed in to change notification settings - Fork 25
Paragon form component deprecations #53
Paragon form component deprecations #53
Conversation
…rnate in LibraryCreateForm
…rnate in LibraryConfigurePage
…rnate in LibraryAccessForm
…g into abdullahwaheed/paragon-form-deprecations
Codecov ReportBase: 49.06% // Head: 49.07% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #53 +/- ##
=======================================
Coverage 49.06% 49.07%
=======================================
Files 76 76
Lines 1985 1997 +12
Branches 366 373 +7
=======================================
+ Hits 974 980 +6
- Misses 977 983 +6
Partials 34 34
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…g into abdullahwaheed/paragon-form-deprecations
…g into abdullahwaheed/paragon-form-deprecations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and it's functioning beautifully!
I did leave a few comments in here, mostly really small cleanup stuff, and a couple questions.
It's wonderful to see depreciated components getting replaced!
const renderOption = option => { | ||
if (option.group) { | ||
return ( | ||
<optgroup label={option.label}> | ||
{option.group.map(renderOption)} | ||
</optgroup> | ||
); | ||
} | ||
return ( | ||
<option value={option.value} key={option.value}>{option.label}</option> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i noticed there is an identical function in LibraryListPage.jsx
, is there any way this could be put somewhere that allows it to be used in both files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renderOption
isn't used in LibraryListPage.jsx
anymore so I have removed it. Don't think we should make it a util now
…g into abdullahwaheed/paragon-form-deprecations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
one little comment in there about a commented out line, but even without changing that this looks good to merge
Ticket
Migrate off deprecated Paragon components
What has changed
Updated deprecated
ValidationFormGroup
toForm.Group
,Input
toForm.Control
andCheckbox
toForm. CheckBox
.Tested on openedx theme as well.