From 4ff9ef35456c30fdfa260e74fd9b84a52053bf40 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sun, 20 Oct 2019 21:32:24 +0100 Subject: [PATCH] consistency --- src/components/Background.jsx | 4 ++-- src/components/Search.jsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Background.jsx b/src/components/Background.jsx index 1380d077..b0ce5124 100644 --- a/src/components/Background.jsx +++ b/src/components/Background.jsx @@ -14,10 +14,10 @@ export default class Background extends React.Component { root.style.backgroundImage = `url(${data.file})`; document.getElementById('photographer').innerText = `Photo by ${data.photographer}`; - document.getElementById('location').innerText = `${data.location}`; + document.getElementById('location').innerText = `${data.location}`; } catch (e) { document.getElementById('backgroundCredits').style.display = 'none'; - document.getElementById('photographer').innerText = 'Photo from Pexels'; + document.getElementById('photographer').innerText = 'Photo from Pexels'; root.style.backgroundImage = `url(../offline-images/${randomInt(1, 25)}.jpeg)`; } } diff --git a/src/components/Search.jsx b/src/components/Search.jsx index 32f778c6..07bd5185 100644 --- a/src/components/Search.jsx +++ b/src/components/Search.jsx @@ -3,11 +3,11 @@ import React from 'react'; export default class Search extends React.Component { render() { return ( -