Files
twenty_crm/front/src/testing/ComponentStorybookLayout.tsx
Charles Bochet d6364a9fdd Apply new theme (#449)
* Apply new theme

* Fix storybook

* Fixes

* Fix regressions
2023-06-26 19:13:04 -07:00

24 lines
510 B
TypeScript

import styled from '@emotion/styled';
const StyledLayout = styled.div`
background: ${({ theme }) => theme.background.primary};
border: 1px solid ${({ theme }) => theme.border.color.light};
border-radius: 5px;
display: flex;
flex-direction: row;
height: fit-content;
min-width: 300px;
padding: 20px;
width: fit-content;
`;
type OwnProps = {
children: JSX.Element;
};
export function ComponentStorybookLayout({ children }: OwnProps) {
return <StyledLayout>{children}</StyledLayout>;
}