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

Remove disallowed generic PropTypes workarounds #81

Open
Tracked by #71
arbrandes opened this issue Oct 21, 2022 · 3 comments
Open
Tracked by #71

Remove disallowed generic PropTypes workarounds #81

arbrandes opened this issue Oct 21, 2022 · 3 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@arbrandes
Copy link
Contributor

arbrandes commented Oct 21, 2022

On the Course Import page we're forcing the use of generic object PropType via an ugly PropTypes.objectOf(PropTypes.object). See here:

https://github.com/openedx/frontend-app-library-authoring/blob/f62d0aa/src/library-authoring/course-import/CourseImportPage.jsx#L151

Remove that and alter the ongoingImport data structure accordingly so we can use a definite PropType.

@arbrandes arbrandes added the bug Report of or fix for something that isn't working as intended label Dec 9, 2022
@jristau1984
Copy link
Contributor

This has been brought into the 2U Library Authoring epic with this internal ticket: https://2u-internal.atlassian.net/browse/TNL-10592

@navinkarkera
Copy link
Contributor

@jristau1984 @arbrandes Is this issue still relevant?

@arbrandes
Copy link
Contributor Author

Yes, the hack is still there:

https://github.com/openedx/frontend-app-library-authoring/blob/f62d0aa/src/library-authoring/course-import/CourseImportPage.jsx#L151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
Status: Backlog
Development

No branches or pull requests

3 participants