update directory structure of schedule list files

This commit is contained in:
John Mitchell 2020-02-27 12:37:37 -05:00
parent e096ad18cb
commit e706e0a2e2
10 changed files with 5 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import PaginatedDataList, {
} from '@components/PaginatedDataList';
import useRequest, { useDeleteItems } from '@util/useRequest';
import { getQSConfig, parseQueryString } from '@util/qs';
import { ScheduleListItem } from '.';
import ScheduleListItem from './ScheduleListItem';
const QS_CONFIG = getQSConfig('schedule', {
page: 1,

View File

@ -3,7 +3,7 @@ import { act } from 'react-dom/test-utils';
import { mountWithContexts } from '@testUtils/enzymeHelpers';
import { SchedulesAPI } from '@api';
import ScheduleList from './ScheduleList';
import mockSchedules from '../data.schedules.json';
import mockSchedules from './data.schedules.json';
jest.mock('@api/models/Schedules');

View File

@ -18,7 +18,7 @@ import { DetailList, Detail } from '@components/DetailList';
import styled from 'styled-components';
import { Schedule } from '@types';
import { formatDateString } from '@util/dates';
import ScheduleToggle from '../shared/ScheduleToggle';
import ScheduleToggle from './ScheduleToggle';
const DataListAction = styled(_DataListAction)`
align-items: center;

View File

@ -0,0 +1 @@
export { default } from './ScheduleList';

View File

@ -1,2 +0,0 @@
export { default as ScheduleList } from './ScheduleList';
export { default as ScheduleListItem } from './ScheduleListItem';

View File

@ -4,7 +4,7 @@ import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro';
import Breadcrumbs from '@components/Breadcrumbs';
import { ScheduleList } from './ScheduleList';
import ScheduleList from '@components/ScheduleList';
function Schedules({ i18n }) {
return (