Client - replace sports PNG images with SVG

This commit is contained in:
Sam
2021-10-01 16:48:48 +02:00
parent ba0b94de45
commit 5856599377
28 changed files with 461 additions and 118 deletions

View File

@@ -16,7 +16,32 @@ describe('sortSports', () => {
locale: 'en',
onlyActive: false,
},
expected: sports,
expected: [
{
has_workouts: false,
id: 1,
img: '/img/sports/cycling-sport.png',
is_active: true,
label: 'Cycling (Sport)',
translatedLabel: 'Cycling (Sport)',
},
{
has_workouts: false,
id: 2,
img: '/img/sports/cycling-transport.png',
is_active: false,
label: 'Cycling (Transport)',
translatedLabel: 'Cycling (Transport)',
},
{
has_workouts: true,
id: 3,
img: '/img/sports/hiking.png',
is_active: true,
label: 'Hiking',
translatedLabel: 'Hiking',
},
],
},
{
description:
@@ -33,6 +58,7 @@ describe('sortSports', () => {
img: '/img/sports/cycling-sport.png',
is_active: true,
label: 'Cycling (Sport)',
translatedLabel: 'Cycling (Sport)',
},
{
has_workouts: true,
@@ -40,6 +66,7 @@ describe('sortSports', () => {
img: '/img/sports/hiking.png',
is_active: true,
label: 'Hiking',
translatedLabel: 'Hiking',
},
],
},
@@ -65,21 +92,24 @@ describe('sortSports', () => {
id: 3,
img: '/img/sports/hiking.png',
is_active: true,
label: 'Randonnée',
label: 'Hiking',
translatedLabel: 'Randonnée',
},
{
has_workouts: false,
id: 1,
img: '/img/sports/cycling-sport.png',
is_active: true,
label: 'Vélo (Sport)',
label: 'Cycling (Sport)',
translatedLabel: 'Vélo (Sport)',
},
{
has_workouts: false,
id: 2,
img: '/img/sports/cycling-transport.png',
is_active: false,
label: 'Vélo (Transport)',
label: 'Cycling (Transport)',
translatedLabel: 'Vélo (Transport)',
},
],
},
@@ -97,14 +127,16 @@ describe('sortSports', () => {
id: 3,
img: '/img/sports/hiking.png',
is_active: true,
label: 'Randonnée',
label: 'Hiking',
translatedLabel: 'Randonnée',
},
{
has_workouts: false,
id: 1,
img: '/img/sports/cycling-sport.png',
is_active: true,
label: 'Vélo (Sport)',
label: 'Cycling (Sport)',
translatedLabel: 'Vélo (Sport)',
},
],
},