Skip to content

The open alternative to Salesforce, designed for AI.

Add pipe chip

Anders Borchbe601c58b1c8
diff --git a/front/src/components/chips/PipeChip.tsx b/front/src/components/chips/PipeChip.tsx
new file mode 100644
index 00000000000..50c2fafed79
--- /dev/null
+++ b/front/src/components/chips/PipeChip.tsx
@@ -0,0 +1,32 @@
+import * as React from 'react';
+import styled from '@emotion/styled';
+
+type OwnProps = {
+ name: string;
+ picture?: string;
+};
+
+const StyledContainer = styled.span`
+ background-color: ${(props) => props.theme.tertiaryBackground};
+ border-radius: ${(props) => props.theme.spacing(1)};
+ color: ${(props) => props.theme.text80};
+ display: inline-flex;
+ align-items: center;
+ padding: ${(props) => props.theme.spacing(1)};
+ gap: ${(props) => props.theme.spacing(1)};
+
+ :hover {
+ filter: brightness(95%);
+ }
+`;
+
+function PipeChip({ name, picture }: OwnProps) {
+ return (
+ <StyledContainer data-testid="company-chip">
+ {picture && <span>{picture}</span>}
+ <span>{name}</span>
+ </StyledContainer>
+ );
+}
+
+export default PipeChip;
diff --git a/front/src/pages/people/people-table.tsx b/front/src/pages/people/people-table.tsx
index 87728bace7e..f96ef1cbe22 100644
--- a/front/src/pages/people/people-table.tsx
+++ b/front/src/pages/people/people-table.tsx
@@ -16,6 +16,7 @@ import HorizontalyAlignedContainer from '../../layout/containers/HorizontalyAlig
import CompanyChip from '../../components/chips/CompanyChip';
import PersonChip from '../../components/chips/PersonChip';
import { Person } from '../../interfaces/person.interface';
+import PipeChip from '../../components/chips/PipeChip';
const columnHelper = createColumnHelper<Person>();
export const peopleColumns = [
@@ -86,7 +87,10 @@ export const peopleColumns = [
columnHelper.accessor('pipe', {
header: () => <ColumnHead viewName="Pipe" viewIcon={faRectangleHistory} />,
cell: (props) => (
- <ClickableCell href="#">{props.row.original.pipe.name}</ClickableCell>
+ <PipeChip
+ name={props.row.original.pipe.name}
+ picture={props.row.original.pipe.icon}
+ />
),
}),
columnHelper.accessor('city', {