@@ -50,8 +50,6 @@ const SectionHeading: React.FC = ({ children }) => (
50
50
< div css = { { ...textMarginCss , color : palette . neutral [ "46" ] } } > { children } </ div >
51
51
) ;
52
52
53
- export const MAX_OPEN_PINBOARDS_TO_DISPLAY = 50 ;
54
-
55
53
interface SelectPinboardProps {
56
54
pinboardsWithClaimCounts : PinboardDataWithClaimCounts [ ] ;
57
55
noOfTeamPinboardsNotShown : number ;
@@ -119,22 +117,10 @@ export const SelectPinboard = ({
119
117
} ;
120
118
} , [ ] ) ;
121
119
122
- const _allActivePinboardsWithoutPreselected = isPinboardData (
123
- preselectedPinboard
124
- )
120
+ const activePinboardsWithoutPreselected = isPinboardData ( preselectedPinboard )
125
121
? activePinboards . filter ( ( _ ) => _ . id !== preselectedPinboard . id )
126
122
: activePinboards ;
127
123
128
- const activePinboardsWithoutPreselected =
129
- _allActivePinboardsWithoutPreselected . slice (
130
- 0 ,
131
- MAX_OPEN_PINBOARDS_TO_DISPLAY
132
- ) ;
133
-
134
- const numberOfPinboardsOverDisplayLimit =
135
- _allActivePinboardsWithoutPreselected . length -
136
- activePinboardsWithoutPreselected . length ;
137
-
138
124
const [ searchPinboards , { data, loading, stopPolling, startPolling } ] =
139
125
useLazyQuery < {
140
126
listPinboards : PinboardData [ ] ;
@@ -466,23 +452,6 @@ export const SelectPinboard = ({
466
452
: activePinboardsWithoutPreselected
467
453
) . map ( OpenPinboardButton ) }
468
454
{ isLoadingActivePinboardList && < SvgSpinner size = "xsmall" /> }
469
- { numberOfPinboardsOverDisplayLimit > 0 && (
470
- < div
471
- css = { css `
472
- padding: ${ space [ 2 ] } px;
473
- font-weight : normal;
474
- font-style : italic;
475
- ` }
476
- >
477
- < strong >
478
- PLUS { numberOfPinboardsOverDisplayLimit } more, which cannot
479
- be displayed.
480
- </ strong > { " " }
481
- Please close some unused pinboards and raise with production
482
- staff to ensure workflow items have the correct status so they
483
- get cleaned up accordingly.
484
- </ div >
485
- ) }
486
455
< div css = { { height : space [ 2 ] } } />
487
456
</ React . Fragment >
488
457
) }
0 commit comments