File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
packages/compass-indexes/src/components/regular-indexes-table Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 11import React , { useCallback , useMemo } from 'react' ;
22import type { GroupedItemAction } from '@mongodb-js/compass-components' ;
3- import {
4- ItemActionGroup ,
5- SpinLoader ,
6- Body ,
7- css ,
8- spacing ,
9- } from '@mongodb-js/compass-components' ;
3+ import { ItemActionGroup , css , spacing } from '@mongodb-js/compass-components' ;
104import type { InProgressIndex } from '../../modules/regular-indexes' ;
115
126type Index = {
@@ -57,21 +51,8 @@ const IndexActions: React.FunctionComponent<IndexActionsProps> = ({
5751 [ onDeleteFailedIndexClick , index ]
5852 ) ;
5953
60- const progress = index . buildProgress * 100 ;
61- const isBuilding = progress > 0 && progress < 100 ;
62-
6354 return (
6455 < div className = { indexActionsContainerStyles } >
65- { isBuilding && (
66- < >
67- < Body > Building… { progress | 0 } %</ Body >
68- < SpinLoader
69- size = { spacing [ 400 ] }
70- title = "Index build in progress"
71- data-testid = "index-building-spinner"
72- />
73- </ >
74- ) }
7556 < ItemActionGroup < IndexAction >
7657 data-testid = "index-actions"
7758 actions = { indexActions }
You can’t perform that action at this time.
0 commit comments