Skip to content

Commit e2e309f

Browse files
committed
fix: remove progress from "in-progress"
1 parent a902b7f commit e2e309f

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

packages/compass-indexes/src/components/regular-indexes-table/in-progress-index-actions.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import React, { useCallback, useMemo } from 'react';
22
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';
104
import type { InProgressIndex } from '../../modules/regular-indexes';
115

126
type 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}

0 commit comments

Comments
 (0)