index.tsx
1.96 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import React from 'react';
import { ViewProps } from 'react-native';
import ListGrid from '../../ListGrid';
import WeeklyPlayerRow from '../../WeeklyPlayerRow';
interface ComponentProps {
data: Player;
active: boolean;
}
type Props = ComponentProps & ViewProps;
const TotalsList: React.FC<Props> = ({ data, active, ...props }: Props) => {
const rowLabel = 'FP';
return (
// loop here
<ListGrid {...props}>
<WeeklyPlayerRow
key="dummy1"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy2"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy3"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy4"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy5"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy6"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy7"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy8"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy9"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy10"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy11"
player={data}
active={active}
rowLabel={rowLabel}
/>
<WeeklyPlayerRow
key="dummy12"
player={data}
active={active}
rowLabel={rowLabel}
/>
</ListGrid>
);
};
export default TotalsList;