Skip to content

Commit 9d194dd

Browse files
committed
loaders
1 parent 07aae33 commit 9d194dd

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

packages/compass-global-writes/src/components/create-shard-key-form.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
Radio,
1515
RadioGroup,
1616
spacing,
17+
SpinLoader,
1718
Subtitle,
1819
TextInput,
1920
} from '@mongodb-js/compass-components';
@@ -305,6 +306,7 @@ export function CreateShardKeyForm({
305306
}
306307
variant="primary"
307308
isLoading={isSubmittingForSharding}
309+
loadingIndicator={<SpinLoader />}
308310
>
309311
Shard Collection
310312
</Button>

packages/compass-global-writes/src/components/states/shard-key-correct.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Label,
1212
Button,
1313
ButtonVariant,
14+
SpinLoader,
1415
} from '@mongodb-js/compass-components';
1516
import { connect } from 'react-redux';
1617
import {
@@ -167,6 +168,7 @@ export function ShardKeyCorrect({
167168
onClick={onUnmanageNamespace}
168169
variant={ButtonVariant.Primary}
169170
isLoading={isUnmanagingNamespace}
171+
loadingIndicator={<SpinLoader />}
170172
>
171173
Unmanage collection
172174
</Button>

packages/compass-global-writes/src/components/states/shard-key-mismatch.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
spacing,
66
css,
77
ButtonVariant,
8+
SpinLoader,
89
} from '@mongodb-js/compass-components';
910
import React from 'react';
1011
import ShardKeyMarkup from '../shard-key-markup';
@@ -69,6 +70,7 @@ export function ShardKeyMismatch({
6970
onClick={onUnmanageNamespace}
7071
variant={ButtonVariant.Default}
7172
isLoading={isUnmanagingNamespace}
73+
loadingIndicator={<SpinLoader />}
7274
className={unmanageBtnStyles}
7375
>
7476
Unmanage collection

packages/compass-global-writes/src/components/states/sharding-error.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Button,
66
css,
77
spacing,
8+
SpinLoader,
89
} from '@mongodb-js/compass-components';
910
import { connect } from 'react-redux';
1011
import {
@@ -23,6 +24,7 @@ const btnStyles = css({
2324
const errorStyles = css({
2425
marginTop: spacing[200],
2526
whiteSpace: 'pre-wrap',
27+
textAlign: 'left',
2628
});
2729

2830
interface ShardingErrorProps {
@@ -49,6 +51,7 @@ export function ShardingError({
4951
data-testid="cancel-sharding-btn"
5052
disabled={isCancellingSharding || isSubmittingForSharding}
5153
isLoading={isCancellingSharding}
54+
loadingIndicator={<SpinLoader />}
5255
onClick={onCancelSharding}
5356
>
5457
Cancel Request

packages/compass-global-writes/src/components/states/sharding.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
css,
88
Link,
99
spacing,
10+
SpinLoader,
1011
} from '@mongodb-js/compass-components';
1112
import { connect } from 'react-redux';
1213
import {
@@ -42,6 +43,7 @@ export function ShardingState({
4243
data-testid="cancel-sharding-btn"
4344
onClick={onCancelSharding}
4445
isLoading={isCancellingSharding}
46+
loadingIndicator={<SpinLoader />}
4547
>
4648
Cancel Request
4749
</Button>

0 commit comments

Comments
 (0)