From 984258cf7640630b5208b5092aad90ed6222a09c Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Tue, 21 Sep 2021 12:39:06 -0700 Subject: [PATCH] clean code --- src/pages/index.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index f840222..e057649 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -105,7 +105,7 @@ const IndexPage = ({ const vibrant = getVibrant(image); const ar = getAspectRatio(image); - const isLandscape = isClient ? ar > 1 : true; + const imageIsLandscape = isClient ? ar > 1 : true; return ( <> @@ -119,7 +119,7 @@ const IndexPage = ({
@@ -136,9 +138,9 @@ const IndexPage = ({

@@ -162,7 +165,7 @@ const IndexPage = ({
)} - {isLandscape && ( + {imageIsLandscape && (