Fix/table rerenders (#609)

* Fixed top bar rerenders

* Fixed rerender on editable cell

* Fix lint

* asd

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-07-12 05:51:24 +02:00
committed by GitHub
parent b5de2abd48
commit 5e0e449e4c
17 changed files with 211 additions and 126 deletions

View File

@ -1,9 +1,9 @@
import styled from '@emotion/styled';
import { ContentContainer } from './ContentContainer';
import { RightDrawerContainer } from './RightDrawerContainer';
type OwnProps = {
children: JSX.Element;
children: JSX.Element | JSX.Element[];
};
const StyledContainer = styled.div`
@ -15,7 +15,7 @@ const StyledContainer = styled.div`
export function NoTopBarContainer({ children }: OwnProps) {
return (
<StyledContainer>
<ContentContainer topMargin={16}>{children}</ContentContainer>
<RightDrawerContainer topMargin={16}>{children}</RightDrawerContainer>
</StyledContainer>
);
}