mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18: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
|
exact
|
||||||
/>
|
/>
|
||||||
{schedule && [
|
{schedule && [
|
||||||
<Route
|
<Route key="edit" path={`${pathRoot}schedules/:id/edit`}>
|
||||||
key="edit"
|
<ScheduleEdit schedule={schedule} />
|
||||||
path={`${pathRoot}schedules/:id/edit`}
|
</Route>,
|
||||||
render={() => <ScheduleEdit schedule={schedule} />}
|
|
||||||
/>,
|
|
||||||
<Route
|
<Route
|
||||||
key="details"
|
key="details"
|
||||||
path={`${pathRoot}schedules/:scheduleId/details`}
|
path={`${pathRoot}schedules/:scheduleId/details`}
|
||||||
|
|||||||
Reference in New Issue
Block a user