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 = {