File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export const Content: Story = {
45
45
} }
46
46
>
47
47
< Box height = { 32 } >
48
- < LoadingToast isLoading = { props . isLoading } />
48
+ < LoadingToast isLoading = { props . isLoading } label = 'Loading devices' />
49
49
</ Box >
50
50
51
51
< Button size = 'small' onClick = { rerender } >
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ import { Spinner } from 'lib/ui/Spinner/Spinner.js'
6
6
7
7
interface LoadingToastProps {
8
8
isLoading : boolean
9
+ label : string
9
10
top ?: number
10
11
left ?: number
11
12
}
12
13
13
14
export function LoadingToast ( {
14
15
isLoading = true ,
16
+ label,
15
17
top,
16
18
left,
17
19
} : LoadingToastProps ) : JSX . Element {
@@ -45,7 +47,7 @@ export function LoadingToast({
45
47
< div className = 'seam-loading-toast-icon-wrap' >
46
48
{ isLoading ? < Spinner size = 'small' /> : < CheckBlackIcon /> }
47
49
</ div >
48
- < p className = 'seam-loading-toast-text' > Loading devices </ p >
50
+ < p className = 'seam-loading-toast-text' > { label } </ p >
49
51
</ div >
50
52
)
51
53
}
You can’t perform that action at this time.
0 commit comments