Skip to content

Commit

Permalink
Group like consts
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Apr 19, 2024
1 parent f7268ce commit 807d534
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/HarvestThreshWinnow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 807d534

Please sign in to comment.