Skip to content

Commit 28d54bd

Browse files
committed
♻️ change responsive logic from minDeviceWidth to minWidth
1 parent a2736e2 commit 28d54bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/utils/responsive.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const mobileEnabled = () => (window.process.env.MOBILE_ENABLED === true);
1010
* The created function returns a Component (props => jsx)
1111
*/
1212
export const createMobileFirst = store => (MobileComponent, Fallback) => props => (
13-
<MediaQuery minDeviceWidth={770}>
13+
<MediaQuery minWidth={770}>
1414
{matches => ((matches || (store && store.getState().editorAccessibility.forceDesktop) || (!mobileEnabled()))
1515
? <Fallback {...props} />
1616
: <MobileComponent {...props} />)}

0 commit comments

Comments
 (0)