gitlab-org--gitlab-foss/spec/frontend/design_management/mock_data/notes.js

44 lines
770 B
JavaScript

import DISCUSSION_1 from './discussion';
const DISCUSSION_2 = {
id: 'discussion-id-2',
notes: {
nodes: [
{
id: 'note-id-2',
index: 2,
position: {
height: 50,
width: 50,
x: 25,
y: 25,
},
author: {
name: 'Mary',
webUrl: 'link-to-mary-profile',
},
createdAt: '2020-05-08T07:10:45Z',
userPermissions: {
adminNote: true,
},
resolved: true,
},
],
},
};
export default [
{
...DISCUSSION_1.notes[0],
discussion: {
id: DISCUSSION_1.id,
notes: {
nodes: DISCUSSION_1.notes,
},
},
},
{
...DISCUSSION_2.notes.nodes[0],
discussion: DISCUSSION_2,
},
];