mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
pass updated breakpoint to stitches
This commit is contained in:
1 parent
a27e1f8530
commit
4d7ffd4eb9
1 file changed
+5
-3
@@ -44,10 +44,12 @@ const useBreakpointChange = () => {
|
||||
if (foundBreakpoint) {
|
||||
foundBreakpoint.label = breakpoint.label;
|
||||
foundBreakpoint.minWidth = breakpoint.minWidth;
|
||||
return;
|
||||
} else {
|
||||
// Its a new breakpoint
|
||||
breakpoints.push(breakpoint);
|
||||
}
|
||||
// Its a new breakpoint
|
||||
breakpoints.push(breakpoint);
|
||||
|
||||
setBreakpoints(breakpoints);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user