* Fixed top bar rerenders * Fixed rerender on editable cell * Fix lint * asd * Fix --------- Co-authored-by: Charles Bochet <charles@twenty.com>
22 lines
489 B
TypeScript
22 lines
489 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import { RightDrawerContainer } from './RightDrawerContainer';
|
|
|
|
type OwnProps = {
|
|
children: JSX.Element | JSX.Element[];
|
|
};
|
|
|
|
const StyledContainer = styled.div`
|
|
display: flex;
|
|
padding-top: ${({ theme }) => theme.spacing(4)};
|
|
width: 100%;
|
|
`;
|
|
|
|
export function NoTopBarContainer({ children }: OwnProps) {
|
|
return (
|
|
<StyledContainer>
|
|
<RightDrawerContainer topMargin={16}>{children}</RightDrawerContainer>
|
|
</StyledContainer>
|
|
);
|
|
}
|