From d3ceb38fe6632c8ffd6037f01401b19094e8d225 Mon Sep 17 00:00:00 2001 From: shahanneda Date: Mon, 8 Aug 2022 21:34:00 -0700 Subject: [PATCH] Typo --- pages/samplePage.tsx | 2 +- utils/getWindowDimensions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/samplePage.tsx b/pages/samplePage.tsx index f25d8a9..8eab372 100644 --- a/pages/samplePage.tsx +++ b/pages/samplePage.tsx @@ -44,7 +44,7 @@ export default function SamplePage() { text: word.key, value: word.value, }))} - // For components that we don't want to match the width necessarily we can provide direact values + // For components that we don't want to match the width necessarily we can provide direct values width={isMobile ? 500 : 1000} height={500} /> diff --git a/utils/getWindowDimensions.ts b/utils/getWindowDimensions.ts index b54167b..c071cb7 100644 --- a/utils/getWindowDimensions.ts +++ b/utils/getWindowDimensions.ts @@ -1,4 +1,4 @@ -// https://stackoverflow.com/questions/36862334/get-viewport-window-height-in-reactjs +// Attribution: https://stackoverflow.com/questions/36862334/get-viewport-window-height-in-reactjs import { useState, useEffect } from "react"; type WindowDimensions = {