|
|
@ -133,7 +133,7 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '.new')}
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '.new')}
|
|
|
|
exact={true}
|
|
|
|
exact={true}
|
|
|
|
render={({match}) => (
|
|
|
|
render={({match}) => (
|
|
|
|
<Container style={{maxWidth: 400}}>
|
|
|
|
<Container style={{maxWidth: '30rem'}}>
|
|
|
|
<ComponentEdit
|
|
|
|
<ComponentEdit
|
|
|
|
collections={props.collections}
|
|
|
|
collections={props.collections}
|
|
|
|
onSave={props.onItemSave}
|
|
|
|
onSave={props.onItemSave}
|
|
|
@ -146,7 +146,7 @@ const CollectionRoutes = withStyles(styles)(withRouter(
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '._id.edit')}
|
|
|
|
path={routeResolver.getRoute(props.routePrefix + '._id.edit')}
|
|
|
|
exact={true}
|
|
|
|
exact={true}
|
|
|
|
render={({match}) => (
|
|
|
|
render={({match}) => (
|
|
|
|
<Container style={{maxWidth: 400}}>
|
|
|
|
<Container style={{maxWidth: '30rem'}}>
|
|
|
|
{(match.params.itemUid in props.items) &&
|
|
|
|
{(match.params.itemUid in props.items) &&
|
|
|
|
<ComponentEdit
|
|
|
|
<ComponentEdit
|
|
|
|
initialCollection={(props.items[match.params.itemUid] as any).journalUid}
|
|
|
|
initialCollection={(props.items[match.params.itemUid] as any).journalUid}
|
|
|
|