Added a performance comment
This commit is contained in:
		@@ -55,6 +55,8 @@ export const SidebarDesktop: React.FC<ISidebarWrapperProps> = ({ children }) =>
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <SidebarAside ref={asideRef}>
 | 
					        <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>
 | 
					            <SidebarContent style={{ maxHeight: maxHeight - 20 }}>{children}</SidebarContent>
 | 
				
			||||||
        </SidebarAside>
 | 
					        </SidebarAside>
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user