Don't require from app
The Manage
component currently requires stuff from the generated app using the app
alias set up in webpack.
That makes it less reusable as it is dependent on the webpack config and file layout of the app it is used in. It also makes it hard to use in a style guide.
Instead, the Navigation
element should be passed as a prop.
The changes touch three repos:
-
yld/pubsweet-cli@f0b2864c change component passed in route definition, connect
Navigation
to store. -
yld/pubsweet-client@6c913def update
AuthenticatedComponent
to expectchildren
instead ofcomponent
prop. -
yld/pubsweet-components@83d2eb93 update
Manage
to expectchildren
instead of hard codingNavigation
as child.