pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

πŸ‘‘ [ιœ€ζ±‚] - Allow Overwriting the isMobile Constant Used in ProLayout and Retrieved from the useBreakpoint Hook

Open gabrielebessi opened this issue 1 year ago β€’ 0 comments

πŸ”© ζ‰€ε±žζ¨‘ε—ζˆ–η»„δ»Ά

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.

gabrielebessi avatar Feb 09 '24 16:02 gabrielebessi