pass updated breakpoint to stitches

This commit is contained in:
Oleg Isonen committed 2022-04-29 22:44:01 +01:00
1 parent a27e1f8530
commit 4d7ffd4eb9
1 file changed
+5 -3
+5 -3
View File
@@ -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);
});
}
);