Added a performance comment

This commit is contained in:
Piotr Janosz
2019-09-02 14:56:14 +02:00
parent 10a5d38446
commit b12b7069f7

View File

@@ -55,6 +55,8 @@ export const SidebarDesktop: React.FC<ISidebarWrapperProps> = ({ children }) =>
return (
<SidebarAside ref={asideRef}>
{/* Setting amcHeight as style and not styled component prop due
to better performance, not having to create a dynamic class for each change */}
<SidebarContent style={{ maxHeight: maxHeight - 20 }}>{children}</SidebarContent>
</SidebarAside>
);