Tarif key added

This commit is contained in:
Kakabay 2023-03-02 12:46:07 +05:00
parent 8fb1b061d5
commit 52be43193b
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
import React from 'react'; import React from 'react';
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { Api } from '../helpers/api'; import { Api } from '../helpers/api';
import { v4 as uuidv4 } from 'uuid';
// Components // Components
import Tab from '../components/Tab'; import Tab from '../components/Tab';
import SectionTitle from '../components/SectionTitle'; import SectionTitle from '../components/SectionTitle';
@ -82,6 +83,7 @@ const Tarif = ({ lang }) => {
? tarifData.data.map((tarif) => { ? tarifData.data.map((tarif) => {
return tarif.type === 'resident' && tarif.title != '-' ? ( return tarif.type === 'resident' && tarif.title != '-' ? (
<TarifService <TarifService
key={uuidv4()}
title={tarif.title} title={tarif.title}
price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')} price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')}
/> />
@ -96,6 +98,7 @@ const Tarif = ({ lang }) => {
? tarifData.data.map((tarif) => { ? tarifData.data.map((tarif) => {
return tarif.type === 'non_resident' && tarif.title != '-' ? ( return tarif.type === 'non_resident' && tarif.title != '-' ? (
<TarifService <TarifService
key={uuidv4()}
title={tarif.title} title={tarif.title}
price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')} price={tarif.prices.map((tarifPrice) => tarifPrice.price + ' ')}
/> />