Skip to content

Commit af6f38e

Browse files
committed
Merge remote-tracking branch 'origin/main' into MPDX-6970
2 parents cd6bd67 + 5e39a3e commit af6f38e

1 file changed

Lines changed: 5 additions & 21 deletions

File tree

src/components/Task/Drawer/Form/Form.stories.tsx

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { InMemoryCache } from '@apollo/client';
55
import {
66
ActivityTypeEnum,
77
Contact,
8-
NotificationTimeUnitEnum,
9-
NotificationTypeEnum,
10-
Task,
118
} from '../../../../../graphql/types.generated';
129
import { getTasksForTaskListMock } from '../../List/List.mock';
13-
import { GetTasksForTaskListDocument } from '../../List/TaskList.generated';
10+
import {
11+
GetTasksForTaskListDocument,
12+
GetTasksForTaskListQuery,
13+
} from '../../List/TaskList.generated';
1414
import {
1515
getDataForTaskDrawerMock,
1616
createTaskMutationMock,
@@ -72,7 +72,7 @@ export const Loading = (): ReactElement => {
7272
);
7373
};
7474

75-
const task: Task = {
75+
const task: GetTasksForTaskListQuery['tasks']['nodes'][0] = {
7676
id: 'task-1',
7777
activityType: ActivityTypeEnum.NewsletterEmail,
7878
subject: 'On the Journey with the Johnson Family',
@@ -84,28 +84,12 @@ const task: Task = {
8484
{ id: 'contact-1', name: 'Anderson, Robert' } as Contact,
8585
{ id: 'contact-2', name: 'Smith, John' } as Contact,
8686
],
87-
pageInfo: { hasNextPage: false, hasPreviousPage: false },
88-
totalCount: 2,
89-
totalPageCount: 1,
9087
},
9188
user: {
9289
id: 'user-1',
9390
firstName: 'Anderson',
9491
lastName: 'Robert',
95-
createdAt: 'date-1',
96-
updatedAt: 'date-2',
97-
},
98-
notificationTimeBefore: 20,
99-
notificationType: NotificationTypeEnum.Both,
100-
notificationTimeUnit: NotificationTimeUnitEnum.Hours,
101-
comments: {
102-
nodes: [],
103-
pageInfo: { hasNextPage: false, hasPreviousPage: false },
104-
totalCount: 0,
105-
totalPageCount: 0,
10692
},
107-
createdAt: 'date-1',
108-
updatedAt: 'date-2',
10993
};
11094

11195
export const Persisted = (): ReactElement => {

0 commit comments

Comments
 (0)