Files
twenty/front/src/modules/ui/components/board/BoardColumn.tsx
T
Félix Malfait b9c41a1dcd Add settings page (#273)
* Add settings page

* Add 'soon' pill and logout

* Refactor components and layout

* Begin improving mobile display

* Add stories and refactor
2023-06-13 17:10:57 +02:00

43 lines
1.1 KiB
TypeScript

import React from 'react';
import styled from '@emotion/styled';
import { DroppableProvided } from '@hello-pangea/dnd';
export const StyledColumn = styled.div`
display: flex;
flex-direction: column;
width: 300px;
background-color: ${({ theme }) => theme.primaryBackground};
padding: ${({ theme }) => theme.spacing(2)};
`;
export const StyledColumnTitle = styled.h3`
font-family: 'Inter';
font-style: normal;
font-weight: ${({ theme }) => theme.fontWeightMedium};
font-size: ${({ theme }) => theme.fontSizeMedium};
line-height: ${({ theme }) => theme.lineHeight};
color: ${({ color }) => color};
margin: 0;
margin-bottom: ${({ theme }) => theme.spacing(2)};
`;
export const StyledItemContainer = styled.div``;
export const ItemsContainer = ({
children,
droppableProvided,
}: {
children: React.ReactNode;
droppableProvided: DroppableProvided;
}) => {
return (
<StyledItemContainer
ref={droppableProvided?.innerRef}
{...droppableProvided?.droppableProps}
>
{children}
{droppableProvided?.placeholder}
</StyledItemContainer>
);
};