File tree 5 files changed +7
-31
lines changed
5 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export const SelectFilter: FC<SelectFilterProps> = ({
108
108
</ div >
109
109
)
110
110
) : (
111
- < Loader size = { 16 } />
111
+ < Loader size = "sm" />
112
112
) }
113
113
</ SelectMenuContent >
114
114
</ SelectMenu >
Original file line number Diff line number Diff line change 1
1
import type { Interpolation , Theme } from "@emotion/react" ;
2
- import { Spinner } from "components/deprecated/ Spinner/Spinner" ;
2
+ import { Spinner } from "components/Spinner/Spinner" ;
3
3
import type { FC , HTMLAttributes } from "react" ;
4
4
5
5
interface LoaderProps extends HTMLAttributes < HTMLDivElement > {
6
6
fullscreen ?: boolean ;
7
- size ?: number ;
7
+ size ?: "sm" | "lg" ;
8
8
/**
9
9
* A label for the loader. This is used for accessibility purposes.
10
10
*/
@@ -13,7 +13,7 @@ interface LoaderProps extends HTMLAttributes<HTMLDivElement> {
13
13
14
14
export const Loader : FC < LoaderProps > = ( {
15
15
fullscreen,
16
- size = 26 ,
16
+ size = "lg" ,
17
17
label = "Loading..." ,
18
18
...attrs
19
19
} ) => {
@@ -23,7 +23,7 @@ export const Loader: FC<LoaderProps> = ({
23
23
data-testid = "loader"
24
24
{ ...attrs }
25
25
>
26
- < Spinner aria-label = { label } size = { size } />
26
+ < Spinner aria-label = { label } size = { size } loading = { true } />
27
27
</ div >
28
28
) ;
29
29
} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const LanguageModelSelector: FC = () => {
20
20
} = useQuery ( deploymentLanguageModels ( ) ) ;
21
21
22
22
if ( isLoading ) {
23
- return < Loader size = { 14 } /> ;
23
+ return < Loader size = "sm" /> ;
24
24
}
25
25
26
26
if ( error || ! languageModelConfig ) {
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export const WorkspacesButton: FC<WorkspacesButtonProps> = ({
85
85
} }
86
86
>
87
87
{ templatesFetchStatus === "loading" ? (
88
- < Loader size = { 14 } />
88
+ < Loader size = "sm" />
89
89
) : (
90
90
< >
91
91
{ processed . map ( ( template ) => (
You can’t perform that action at this time.
0 commit comments