marsha
marsha copied to clipboard
Remove apps models from lib-components
Problem
We added the application models in "lib-components" by convenience, because some components use them, they shouldn't (circular dependency) and it is not the place of these models, they should be in their own packages: apps-model
Solution
- Refactorize the components in
lib-componentusing the apps models to not use them anymore. - Then move back the models in their correct place,
apps/classroom/models.tsshould be inlib-classroompackage.
Ex:
UploadManager could have a prop isWithContentType, like that the component will be free of apps model dependency.