diff --git a/src/components/TarifService.jsx b/src/components/TarifService.jsx index c764bcb..aba0a46 100644 --- a/src/components/TarifService.jsx +++ b/src/components/TarifService.jsx @@ -1,13 +1,10 @@ import React from 'react'; -const TarifService = ({ title, price, activeTab }) => { +const TarifService = ({ title, price }) => { return (

{title}

-

- {price}{' '} - {activeTab === 1 ? (price.length < 7 ? 'TMT' : null) : price.length < 7 ? '$' : null} -

+

{price}

); }; diff --git a/src/pages/Tarif.jsx b/src/pages/Tarif.jsx index f8d8436..b0ceb15 100644 --- a/src/pages/Tarif.jsx +++ b/src/pages/Tarif.jsx @@ -37,78 +37,30 @@ const Tarif = () => { {activeTab === 1 ? (
- - - - - - - + {tarifData + ? tarifData.data.map((tarif) => { + return tarif.type === 'resident' ? ( + tarifPrice.price + ' ')} + /> + ) : null; + }) + : null}
) : null} {activeTab === 2 ? (
- - - - - - - + {tarifData + ? tarifData.data.map((tarif) => { + return tarif.type === 'non_resident' ? ( + tarifPrice.price + ' ')} + /> + ) : null; + }) + : null}
) : null}