From 807d534bf66a09dbca6c569d84091336ad213643 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 19 Apr 2024 14:32:28 -0400 Subject: [PATCH] Group like consts --- src/components/HarvestThreshWinnow/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/HarvestThreshWinnow/index.tsx b/src/components/HarvestThreshWinnow/index.tsx index 2212b7a9af..be50bcbb41 100644 --- a/src/components/HarvestThreshWinnow/index.tsx +++ b/src/components/HarvestThreshWinnow/index.tsx @@ -80,12 +80,6 @@ export default function HarvestThreshWinnow( ): ReactElement { const [fadeOutSeparate, setFadeOutSeparate] = useState(false); - const size = Math.min( - 0.75 * window.innerHeight, - 0.25 * window.innerWidth, - props.maxSize || 1000 - ); - useEffect(() => { if (props.loading) { const opacity = fadeOutSeparate @@ -103,6 +97,12 @@ export default function HarvestThreshWinnow( } }, [fadeOutSeparate, props.loading]); + const size = Math.min( + 0.75 * window.innerHeight, + 0.25 * window.innerWidth, + props.maxSize || 1000 + ); + const imageStyle: CSSProperties = { border: "1px solid black", borderRadius: size,