Skip to content

Commit

Permalink
fix(web): MobileAppBanner hydration error fix suggestion (#17671)
Browse files Browse the repository at this point in the history
* fix: init

* fix: more fix

---------

Co-authored-by: Jón Levy <[email protected]>
  • Loading branch information
thorkellmani and busla authored Jan 30, 2025
1 parent d46501c commit 2221053
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/web/components/MobileAppBanner/MobileAppBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ export const MobileAppBanner = ({ namespace }: MobileAppBannerProps) => {
setIsMounted(true)
}, [])

return hidden ? null : (
<Hidden print={true}>
return (
<Hidden screen={hidden || !isMounted} print={true}>
<Box
background="blue400"
display="flex"
className={style.container}
alignItems={'center'}
style={{ visibility: isMounted ? 'visible' : 'hidden' }}
>
<button
className={style.closeBtn}
Expand Down

0 comments on commit 2221053

Please sign in to comment.