mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 17:07:36 -02:30
update directory structure of schedule list files
This commit is contained in:
@@ -12,7 +12,7 @@ import PaginatedDataList, {
|
|||||||
} from '@components/PaginatedDataList';
|
} from '@components/PaginatedDataList';
|
||||||
import useRequest, { useDeleteItems } from '@util/useRequest';
|
import useRequest, { useDeleteItems } from '@util/useRequest';
|
||||||
import { getQSConfig, parseQueryString } from '@util/qs';
|
import { getQSConfig, parseQueryString } from '@util/qs';
|
||||||
import { ScheduleListItem } from '.';
|
import ScheduleListItem from './ScheduleListItem';
|
||||||
|
|
||||||
const QS_CONFIG = getQSConfig('schedule', {
|
const QS_CONFIG = getQSConfig('schedule', {
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -3,7 +3,7 @@ import { act } from 'react-dom/test-utils';
|
|||||||
import { mountWithContexts } from '@testUtils/enzymeHelpers';
|
import { mountWithContexts } from '@testUtils/enzymeHelpers';
|
||||||
import { SchedulesAPI } from '@api';
|
import { SchedulesAPI } from '@api';
|
||||||
import ScheduleList from './ScheduleList';
|
import ScheduleList from './ScheduleList';
|
||||||
import mockSchedules from '../data.schedules.json';
|
import mockSchedules from './data.schedules.json';
|
||||||
|
|
||||||
jest.mock('@api/models/Schedules');
|
jest.mock('@api/models/Schedules');
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ import { DetailList, Detail } from '@components/DetailList';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { Schedule } from '@types';
|
import { Schedule } from '@types';
|
||||||
import { formatDateString } from '@util/dates';
|
import { formatDateString } from '@util/dates';
|
||||||
import ScheduleToggle from '../shared/ScheduleToggle';
|
import ScheduleToggle from './ScheduleToggle';
|
||||||
|
|
||||||
const DataListAction = styled(_DataListAction)`
|
const DataListAction = styled(_DataListAction)`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
1
awx/ui_next/src/components/ScheduleList/index.js
Normal file
1
awx/ui_next/src/components/ScheduleList/index.js
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { default } from './ScheduleList';
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export { default as ScheduleList } from './ScheduleList';
|
|
||||||
export { default as ScheduleListItem } from './ScheduleListItem';
|
|
||||||
@@ -4,7 +4,7 @@ import { withI18n } from '@lingui/react';
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
|
|
||||||
import Breadcrumbs from '@components/Breadcrumbs';
|
import Breadcrumbs from '@components/Breadcrumbs';
|
||||||
import { ScheduleList } from './ScheduleList';
|
import ScheduleList from '@components/ScheduleList';
|
||||||
|
|
||||||
function Schedules({ i18n }) {
|
function Schedules({ i18n }) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user