Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianWielga committed Aug 13, 2024
1 parent aeb1e1f commit e2973c6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/window/WindowFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export const WindowFrame = forwardRef((props: PropsWithChildren<WindowFrameProps
useLayoutEffect(() => {
if (contentAvailable && position && !(maximized || wasMaximized)) {
const newValue = calcEdgePosition(viewport);
console.log("layoutEffect");
setPosition((current) => (isEqual(newValue, current) ? current : newValue));
}
}, [contentAvailable, wasMaximized, calcEdgePosition, maximized, position, viewport]);
Expand All @@ -206,7 +205,6 @@ export const WindowFrame = forwardRef((props: PropsWithChildren<WindowFrameProps
const setFrameBox = useCallback((box: Box) => {
const { y, height, width, x } = box;
setSize({ width, height });
console.log("setFrameBox");
setPosition({ x, y });
}, []);

Expand Down

0 comments on commit e2973c6

Please sign in to comment.