From fd67e3e86d02523160edad2a973ada93003c5121 Mon Sep 17 00:00:00 2001 From: agustin-vacca Date: Wed, 8 Mar 2023 16:28:12 -0300 Subject: [PATCH 1/4] feat(utils/fetcher): Change per API --- arturito/src/utils/fetcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arturito/src/utils/fetcher.ts b/arturito/src/utils/fetcher.ts index b3e48c08..1f506a0d 100644 --- a/arturito/src/utils/fetcher.ts +++ b/arturito/src/utils/fetcher.ts @@ -1,7 +1,7 @@ import axios from 'axios'; -// Possible alternative: 'https://swapi.dev/api' -const baseURL = 'https://www.swapi.it/api'; +// Possible alternative:'https://www.swapi.it/api' +const baseURL ='https://swapi.dev/api' ; export const swGet = (url: string) => axios.get(url, { baseURL }).then((res) => res.data); From e93a4316c7eb45ac7add4670b749f6124ae65cc4 Mon Sep 17 00:00:00 2001 From: agustin-vacca Date: Wed, 8 Mar 2023 16:30:08 -0300 Subject: [PATCH 2/4] feat(components/PlanetsSection): Clear slice for data.results --- arturito/src/components/PlanetsSection/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arturito/src/components/PlanetsSection/index.tsx b/arturito/src/components/PlanetsSection/index.tsx index b0f140b3..cdb36584 100644 --- a/arturito/src/components/PlanetsSection/index.tsx +++ b/arturito/src/components/PlanetsSection/index.tsx @@ -43,7 +43,7 @@ const Planets = () => { return (
- +
); }; From f532f3c5169ed4b7058a1582dddc25ae7312c022 Mon Sep 17 00:00:00 2001 From: agustin-vacca Date: Wed, 8 Mar 2023 16:40:18 -0300 Subject: [PATCH 3/4] fix(components/PlanetsSection): Includes slice --- arturito/src/components/PlanetsSection/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arturito/src/components/PlanetsSection/index.tsx b/arturito/src/components/PlanetsSection/index.tsx index cdb36584..f143b020 100644 --- a/arturito/src/components/PlanetsSection/index.tsx +++ b/arturito/src/components/PlanetsSection/index.tsx @@ -43,7 +43,7 @@ const Planets = () => { return (
-
+
); }; From aa234184979cf9e3777d7b4913bab84ca170c173 Mon Sep 17 00:00:00 2001 From: agustin-vacca Date: Wed, 8 Mar 2023 16:45:03 -0300 Subject: [PATCH 4/4] feat(components/PlanetsSelection): Clear slice --- arturito/src/components/PlanetsSection/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arturito/src/components/PlanetsSection/index.tsx b/arturito/src/components/PlanetsSection/index.tsx index f143b020..cdb36584 100644 --- a/arturito/src/components/PlanetsSection/index.tsx +++ b/arturito/src/components/PlanetsSection/index.tsx @@ -43,7 +43,7 @@ const Planets = () => { return (
-
+
); };