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 1
1
import React , { useCallback , useMemo } from 'react' ;
2
2
import 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' ;
10
4
import type { InProgressIndex } from '../../modules/regular-indexes' ;
11
5
12
6
type Index = {
@@ -57,21 +51,8 @@ const IndexActions: React.FunctionComponent<IndexActionsProps> = ({
57
51
[ onDeleteFailedIndexClick , index ]
58
52
) ;
59
53
60
- const progress = index . buildProgress * 100 ;
61
- const isBuilding = progress > 0 && progress < 100 ;
62
-
63
54
return (
64
55
< 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
- ) }
75
56
< ItemActionGroup < IndexAction >
76
57
data-testid = "index-actions"
77
58
actions = { indexActions }
You can’t perform that action at this time.
0 commit comments