From 4388a73fc790b5550f15ba16ba22d08a1682fbe9 Mon Sep 17 00:00:00 2001 From: Sylwia Date: Tue, 4 Jan 2022 22:33:21 +0100 Subject: [PATCH] Fixing paths for the production version --- src/views/AdoptionPage/AdoptionPage.js | 2 +- src/views/CreditsPage/CreditsPage.js | 2 +- src/views/MainPage/MainPage.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/AdoptionPage/AdoptionPage.js b/src/views/AdoptionPage/AdoptionPage.js index 02bf1c2..a80fb6a 100644 --- a/src/views/AdoptionPage/AdoptionPage.js +++ b/src/views/AdoptionPage/AdoptionPage.js @@ -3,7 +3,7 @@ import Button from '../../components/Button/Button'; const PAGE_TITLE = 'ADOPTION'; const MAIN_TEXT = 'CHOOSE YOUR NEW PET:'; -const MAIN_ANIMAL = { pathOrUrl: '../bird.png', alt: 'flying bird' }; +const MAIN_ANIMAL = { pathOrUrl: './bird.png', alt: 'flying bird' }; const ANIMAL_TYPES = [ { type: 'cat', pathOrUrl: 'https://www.petfinder.com/' }, { type: 'dog', pathOrUrl: 'https://www.petfinder.com/' }, diff --git a/src/views/CreditsPage/CreditsPage.js b/src/views/CreditsPage/CreditsPage.js index 0b7bd3a..ac89eb6 100644 --- a/src/views/CreditsPage/CreditsPage.js +++ b/src/views/CreditsPage/CreditsPage.js @@ -3,7 +3,7 @@ import Button from '../../components/Button/Button'; import Bubble from '../../components/Bubble/Bubble'; const PAGE_TITLE = 'CREDITS'; -const MAIN_ANIMAL_IMG = { pathOrUrl: '../kangoroo.png', alt: 'kangoroo that tells informations' }; +const MAIN_ANIMAL_IMG = { pathOrUrl: './kangoroo.png', alt: 'kangoroo that tells informations' }; const CreditsBubbleContent = { HEADER_TEXT: 'This is our first project of Coders Camp 2021', SENTENCE: 'Meet our whole team', diff --git a/src/views/MainPage/MainPage.js b/src/views/MainPage/MainPage.js index 652dbac..88fddb6 100644 --- a/src/views/MainPage/MainPage.js +++ b/src/views/MainPage/MainPage.js @@ -6,7 +6,7 @@ import { retrieveAnimalFact } from '../../api/FactsController'; import { onNavigationChange } from '../../components/router/Router'; const PAGE_TITLE = 'ANIMALIADA'; -const MAIN_ANIMAL_IMG = { pathOrUrl: '../kangoroo.png', alt: 'kangoroo that tells informations' }; +const MAIN_ANIMAL_IMG = { pathOrUrl: './kangoroo.png', alt: 'kangoroo that tells informations' }; const FACT_HEADER = 'Did you know?'; const AdoptionBubbleContent = { IMG: { pathOrUrl: 'https://placedog.net/150/150?random', alt: 'the animal to adoption' },