mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
Pass route contents as child instead of using render prop
This commit is contained in:
@@ -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`}
|
||||
|
||||
Reference in New Issue
Block a user