mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Pass route contents as child instead of using render prop
This commit is contained in:
parent
d0d8d1c66c
commit
be0a7a2aa9
@ -108,11 +108,9 @@ function Schedule({ i18n, setBreadcrumb, unifiedJobTemplate }) {
|
||||
exact
|
||||
/>
|
||||
{schedule && [
|
||||
<Route
|
||||
key="edit"
|
||||
path={`${pathRoot}schedules/:id/edit`}
|
||||
render={() => <ScheduleEdit schedule={schedule} />}
|
||||
/>,
|
||||
<Route key="edit" path={`${pathRoot}schedules/:id/edit`}>
|
||||
<ScheduleEdit schedule={schedule} />
|
||||
</Route>,
|
||||
<Route
|
||||
key="details"
|
||||
path={`${pathRoot}schedules/:scheduleId/details`}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user