From ee4d8748c252d1b3c0f3437034a699f254664647 Mon Sep 17 00:00:00 2001 From: Yesica Romina Lato Date: Fri, 21 Apr 2023 12:52:51 -0300 Subject: [PATCH 1/2] fix rutas de la api --- arturito/src/components/HomeSection/index.tsx | 2 +- arturito/src/containers/Main/index.tsx | 8 ++++---- arturito/src/utils/fetcher.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arturito/src/components/HomeSection/index.tsx b/arturito/src/components/HomeSection/index.tsx index 1a9e90af..4d2e6a80 100644 --- a/arturito/src/components/HomeSection/index.tsx +++ b/arturito/src/components/HomeSection/index.tsx @@ -9,7 +9,7 @@ const Button = ({ text, href }: { text: string; href: string }) => ( const HomeSection = () => (

¡Elegí una sección!

-
); diff --git a/arturito/src/containers/Main/index.tsx b/arturito/src/containers/Main/index.tsx index 54f1f3f2..cb577e0e 100644 --- a/arturito/src/containers/Main/index.tsx +++ b/arturito/src/containers/Main/index.tsx @@ -37,8 +37,8 @@ const MainContainer = () => { films. Codear en un componente aparte tal como {''}.

- - https://swapi.it/documentation#starships + + https://swapi.dev/documentation#starships

@@ -53,8 +53,8 @@ const MainContainer = () => { films. Codear en un componente aparte tal como {''}.

- - https://swapi.it/documentation#people + + https://swapi.dev/documentation#people

diff --git a/arturito/src/utils/fetcher.ts b/arturito/src/utils/fetcher.ts index b3e48c08..2611fd35 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'; +const baseURL = 'https://swapi.dev/api'; export const swGet = (url: string) => axios.get(url, { baseURL }).then((res) => res.data); From 19f9b99fb6b8ea8e92d93ede20549561c523ea8b Mon Sep 17 00:00:00 2001 From: Yesica Romina Lato Date: Fri, 21 Apr 2023 17:07:07 -0300 Subject: [PATCH 2/2] Planets --- arturito/src/components/PlanetsSection/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arturito/src/components/PlanetsSection/index.tsx b/arturito/src/components/PlanetsSection/index.tsx index b0f140b3..d5338973 100644 --- a/arturito/src/components/PlanetsSection/index.tsx +++ b/arturito/src/components/PlanetsSection/index.tsx @@ -43,9 +43,13 @@ const Planets = () => { return (
- +
+ ); }; export default Planets; + + +//change line 46
\ No newline at end of file