-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathusersData.ts
More file actions
65 lines (61 loc) · 1.85 KB
/
Copy pathusersData.ts
File metadata and controls
65 lines (61 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import _keyBy from 'lodash/keyBy'
import User from '_types/User'
import organizationsToUsersData from './organizationsToUsersData'
const list: User[] = [
{
id: 1,
firstName: 'Gevorg',
lastName: 'H',
username: 'johndoe1',
email: 'john@doe.com',
avatarUrl: 'https://avatars3.githubusercontent.com/u/3959008?v=3&s=40',
userToOrganizations: organizationsToUsersData.byUserId[1],
globalRole: 'admin',
},
{
id: 2,
firstName: 'Jay',
lastName: 'Nickolson',
username: null,
email: 'example@gmail.com',
avatarUrl:
'https://tinyfac.es/data/avatars/475605E3-69C5-4D2B-8727-61B7BB8C4699-500w.jpeg',
userToOrganizations: organizationsToUsersData.byUserId[2],
},
{
id: 3,
firstName: 'Ana',
lastName: 'De Armas',
username: null,
email: 'Ana+De+Armas@example.com',
avatarUrl:
'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg',
userToOrganizations: organizationsToUsersData.byUserId[3],
},
{
id: 4,
firstName: 'Armas',
lastName: 'De Ana',
username: null,
email: 'Ana+De+Armas@example.com',
avatarUrl:
'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg',
userToOrganizations: organizationsToUsersData.byUserId[4],
},
{
id: 5,
firstName: 'Sonequa',
lastName: 'Martin-Green',
email: 'Sonequa+Martin+Green@example.com',
avatarUrl:
'https://images-na.ssl-images-amazon.com/images/M/MV5BMTgxMTc1MTYzM15BMl5BanBnXkFtZTgwNzI5NjMwOTE@._V1_UY256_CR16,0,172,256_AL_.jpg',
userToOrganizations: organizationsToUsersData.byUserId[5],
},
]
const byId: { [key: number]: User } = _keyBy(list, 'id')
const usersData = {
list,
byId,
current: byId[1],
}
export default usersData