Fix hidden text for mobile sidebar

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-08-26 16:06:35 +02:00
parent 5707087ba7
commit c260b56435
@@ -163,7 +163,13 @@ export const Sidebar = ({
);
return isMobileScreen ? (
<MobileSidebar {...props}>{children}</MobileSidebar>
<SidebarContext.Provider
value={{
isOpen: true,
}}
>
<MobileSidebar {...props}>{children}</MobileSidebar>
</SidebarContext.Provider>
) : (
<DesktopSidebar>{children}</DesktopSidebar>
);