diff --git a/src/api/API.jsx b/src/api/API.jsx index 71ea158..f369467 100644 --- a/src/api/API.jsx +++ b/src/api/API.jsx @@ -1,7 +1,7 @@ export const PRODUCTS = "https://coding-challenge-api.aerolab.co/products"; export const USER = "https://coding-challenge-api.aerolab.co/user/me"; export const HISTORY = "https://coding-challenge-api.aerolab.co/user/history"; -export const AUTH_TOKEN = - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZWRkOWU5OTQ0NGZlNDAwNmRhOTkyNGQiLCJpYXQiOjE1OTE1ODIzNjF9.-f40dyUIGFsBSB_PTeBGdSLI58I21-QBJNi9wkODcKk"; export const REDEEEM = "https://coding-challenge-api.aerolab.co/redeem"; export const ADD_POINTS = "https://coding-challenge-api.aerolab.co/user/points"; +export const AUTH_TOKEN = + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZjU1OGMxZjc0MjM1MjAwMWVkOTA5YTMiLCJpYXQiOjE1OTk0NDE5NTF9.Qv5K-KCe54K_TIJkJAnGAJAKsDfRRXAEaa5UXGaWZLQ"; diff --git a/src/components/Products/Product.jsx b/src/components/Products/Product.jsx index cd804e4..a36f7af 100644 --- a/src/components/Products/Product.jsx +++ b/src/components/Products/Product.jsx @@ -90,7 +90,7 @@ const Product = ({ style={{ backgroundColor: "#92a2a7da" }} >
-

{cost - (points | 0)}

+

{cost}

coin
diff --git a/src/components/Products/ProductsList.jsx b/src/components/Products/ProductsList.jsx index d1c4edd..35fe6b3 100644 --- a/src/components/Products/ProductsList.jsx +++ b/src/components/Products/ProductsList.jsx @@ -18,14 +18,30 @@ const ProductsList = () => { <>
{currentData().map((item, key) => { - return ; + return ( + + ); })}
diff --git a/src/components/Products/products.scss b/src/components/Products/products.scss index 0453c97..c0bb641 100644 --- a/src/components/Products/products.scss +++ b/src/components/Products/products.scss @@ -63,7 +63,7 @@ margin-right: 18%; justify-content: center; span { - padding: 15px; + padding: 10px; margin-right: 5px; color: white; display: inline-flex;