@vixoniccom/footbal-score 1.0.1-beta.18 → 1.0.1-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build.zip +0 -0
- package/package.json +1 -1
- package/src/components/table-fixture/Row.tsx +30 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.1-beta.19](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.18...v1.0.1-beta.19) (2022-11-23)
|
|
6
|
+
|
|
5
7
|
### [1.0.1-beta.18](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.17...v1.0.1-beta.18) (2022-11-23)
|
|
6
8
|
|
|
7
9
|
### [1.0.1-beta.17](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.16...v1.0.1-beta.17) (2022-11-23)
|
package/build.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export const Row = (item: any) => {
|
|
|
27
27
|
widthStatus,
|
|
28
28
|
widthTime,
|
|
29
29
|
} = parameters
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
let gridColumns = descriptionEnabled ? `${widthTime || "200px"} ${widthStatus || "200px"} ${widthDescription || "200px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"} ${widthDescription || "200px"}` :
|
|
32
32
|
` ${widthTime || "100px"} ${widthStatus || "100px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"}`
|
|
33
33
|
|
|
@@ -35,10 +35,10 @@ export const Row = (item: any) => {
|
|
|
35
35
|
let nameAway = translateTeams(teams.away.name)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
const requestFlagHome = async(id:any) =>{
|
|
38
|
+
const requestFlagHome = async (id: any) => {
|
|
39
39
|
try {
|
|
40
40
|
const resp1 = await fetch(`https://storage.googleapis.com/vixoniccom-emails/results_flags/${id}.png`)
|
|
41
|
-
if(resp1.status === 200){
|
|
41
|
+
if (resp1.status === 200) {
|
|
42
42
|
setHomeTeam(true)
|
|
43
43
|
}
|
|
44
44
|
} catch (error) {
|
|
@@ -47,10 +47,10 @@ export const Row = (item: any) => {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const requestFlagAway = async(id:any) =>{
|
|
50
|
+
const requestFlagAway = async (id: any) => {
|
|
51
51
|
try {
|
|
52
52
|
const resp1 = await fetch(`https://storage.googleapis.com/vixoniccom-emails/results_flags/${id}.png`)
|
|
53
|
-
|
|
53
|
+
if (resp1.status === 200) {
|
|
54
54
|
setAwayTeam(true)
|
|
55
55
|
}
|
|
56
56
|
} catch (error) {
|
|
@@ -60,10 +60,10 @@ export const Row = (item: any) => {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
useEffect(() =>{
|
|
63
|
+
useEffect(() => {
|
|
64
64
|
requestFlagHome(teams.home.id)
|
|
65
65
|
requestFlagAway(teams.away.id)
|
|
66
|
-
},[])
|
|
66
|
+
}, [])
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
return (
|
|
@@ -80,9 +80,26 @@ export const Row = (item: any) => {
|
|
|
80
80
|
justifyContent: 'center'
|
|
81
81
|
}}
|
|
82
82
|
>
|
|
83
|
-
<
|
|
83
|
+
<div
|
|
84
|
+
style={{
|
|
85
|
+
display: 'flex',
|
|
86
|
+
justifyContent: 'flex-end',
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<Time time={Number(fixture.timestamp)} />
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
display: 'flex',
|
|
96
|
+
justifyContent: 'flex-end',
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
<Status status={fixture.status.short} />
|
|
100
|
+
|
|
101
|
+
</div>
|
|
84
102
|
|
|
85
|
-
<Status status={fixture.status.short} />
|
|
86
103
|
|
|
87
104
|
|
|
88
105
|
{
|
|
@@ -105,8 +122,8 @@ export const Row = (item: any) => {
|
|
|
105
122
|
}}>
|
|
106
123
|
{
|
|
107
124
|
homeTeam ?
|
|
108
|
-
|
|
109
|
-
|
|
125
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${teams.home.id}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} /> :
|
|
126
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
110
127
|
|
|
111
128
|
}
|
|
112
129
|
</div>
|
|
@@ -124,8 +141,8 @@ export const Row = (item: any) => {
|
|
|
124
141
|
>
|
|
125
142
|
{
|
|
126
143
|
awayTeam ?
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${teams.away.id}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
145
|
+
: <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
129
146
|
}
|
|
130
147
|
</div>
|
|
131
148
|
{
|