pro-components
pro-components copied to clipboard
π [ιζ±] - Allow Overwriting the isMobile Constant Used in ProLayout and Retrieved from the useBreakpoint Hook
π© ζε±ζ¨‘εζη»δ»Ά
ProLayout
π₯° ιζ±ζθΏ°
Allow the developer to customize the default behaviour of the isMobile in the ProLayout.
β° εθ½ιζ±ιη¨εΊζ―
It would be beneficial for developers to be able to tailor the default behavior based on the value of the isMobile prop.
π§ θ§£ε³ζΉζ‘
Utilize the isMobile prop passed into the ProLayout component, instead of the internal isMobile constant set by useBreakpoint, only if the prop is explicitly set.