File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ export function EntityBoardColumn({
104
104
pipelineStageId = { column . pipelineStageId }
105
105
totalAmount = { boardColumnTotal }
106
106
isFirstColumn = { column . index === 0 }
107
+ numChildren = { column . pipelineProgressIds . length }
107
108
>
108
109
< BoardColumnCardsContainer droppableProvided = { droppableProvided } >
109
110
{ column . pipelineProgressIds . map ( ( pipelineProgressId , index ) => (
Original file line number Diff line number Diff line change @@ -60,6 +60,19 @@ const StyledAmount = styled.div`
60
60
margin-left: ${ ( { theme } ) => theme . spacing ( 2 ) } ;
61
61
` ;
62
62
63
+ const StyledNumChildren = styled . div `
64
+ align-items: center;
65
+ background-color: ${ ( { theme } ) => theme . background . tertiary } ;
66
+ border-radius: ${ ( { theme } ) => theme . border . radius . rounded } ;
67
+ color: ${ ( { theme } ) => theme . font . color . tertiary } ;
68
+ display: flex;
69
+ height: 20px;
70
+ justify-content: center;
71
+ line-height: ${ ( { theme } ) => theme . text . lineHeight . lg } ;
72
+ margin-left: auto;
73
+ width: 16px;
74
+ ` ;
75
+
63
76
type OwnProps = {
64
77
color ?: string ;
65
78
title : string ;
@@ -69,6 +82,7 @@ type OwnProps = {
69
82
totalAmount ?: number ;
70
83
children : React . ReactNode ;
71
84
isFirstColumn : boolean ;
85
+ numChildren : number ;
72
86
} ;
73
87
74
88
export function BoardColumn ( {
@@ -79,6 +93,7 @@ export function BoardColumn({
79
93
totalAmount,
80
94
children,
81
95
isFirstColumn,
96
+ numChildren,
82
97
} : OwnProps ) {
83
98
const [ isBoardColumnMenuOpen , setIsBoardColumnMenuOpen ] =
84
99
React . useState ( false ) ;
@@ -112,6 +127,7 @@ export function BoardColumn({
112
127
< StyledHeader >
113
128
< Tag onClick = { handleTitleClick } color = { color } text = { title } />
114
129
{ ! ! totalAmount && < StyledAmount > ${ totalAmount } </ StyledAmount > }
130
+ < StyledNumChildren > { numChildren } </ StyledNumChildren >
115
131
</ StyledHeader >
116
132
{ isBoardColumnMenuOpen && (
117
133
< BoardColumnMenu
You can’t perform that action at this time.
0 commit comments