diff --git a/src/common/containers/App/index.jsx b/src/common/containers/App/index.jsx index 5fea914b..b4eafae7 100644 --- a/src/common/containers/App/index.jsx +++ b/src/common/containers/App/index.jsx @@ -46,7 +46,7 @@ type Props = { checkAuthLogic: Function, toggleSidebar: Function, // IsMobile can force component to re-render - isMobile: string, + isMobile: boolean, isMobileXS: boolean, isMobileSM: boolean } @@ -147,22 +147,14 @@ class App extends Component { // page: true, onClick: closeSidebar } - - // {/* XXX: There is an issue with props and styled-components, so we use .extend and re-render the component when isMobile/isLoggedIn change triggered. Using `style` attribute isn't a good solution. - // Please, check: https://github.com/styled-components/styled-components/issues/439 */} - // {/* */} - const SidebarSemanticPusherStyledPatch = - !isMobile && isLoggedIn - ? SidebarSemanticPusherStyled.extend` - max-width: calc(100% - 150px); - ` - : SidebarSemanticPusherStyled + // XXX: There is an issue with props and styled-components, so we use custom attributes and handle them inside styled component + /** {@link: https://github.com/styled-components/styled-components/issues/439} */ return ( {isLoggedIn && } - +
@@ -173,7 +165,7 @@ class App extends Component {