Add ability to associate a new company to pipeline (#350)

* Add ability to associate a new company to pipeline

* Fix tests
This commit is contained in:
Charles Bochet
2023-06-21 22:31:19 -07:00
committed by GitHub
parent a65853dc2e
commit 817d6dcb05
23 changed files with 474 additions and 421 deletions

View File

@ -0,0 +1,37 @@
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconPlus } from '@/ui/icons/index';
const StyledButton = styled.button`
align-items: center;
align-self: baseline;
background-color: ${({ theme }) => theme.primaryBackground};
border: none;
border-radius: ${({ theme }) => theme.borderRadius};
color: ${({ theme }) => theme.text40};
cursor: pointer;
display: flex;
gap: ${({ theme }) => theme.spacing(1)};
justify-content: center;
padding: ${(props) => props.theme.spacing(1)};
&:hover {
background-color: ${({ theme }) => theme.secondaryBackground};
}
`;
type OwnProps = {
onClick: () => void;
};
export function NewButton({ onClick }: OwnProps) {
const theme = useTheme();
return (
<StyledButton onClick={onClick}>
<IconPlus size={theme.iconSizeMedium} />
New
</StyledButton>
);
}