We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bef91a commit 85cfe5aCopy full SHA for 85cfe5a
web/common/src/components/LoadingContainer/LoadingContainer.tsx
@@ -15,13 +15,16 @@ export const LoadingContainer = React.forwardRef<
15
HTMLDivElement,
16
LoadingContainerProps
17
>(
18
- ({
19
- isLoading = true,
20
- side = 'left',
21
- message,
22
- children,
23
- className,
24
- }: LoadingContainerProps) => {
+ (
+ {
+ isLoading = true,
+ side = 'left',
+ message,
+ children,
+ className,
25
+ }: LoadingContainerProps,
26
+ ref,
27
+ ) => {
28
function renderLoading() {
29
return (
30
<>
@@ -33,6 +36,7 @@ export const LoadingContainer = React.forwardRef<
33
36
34
37
return isLoading ? (
35
38
<div
39
+ ref={ref}
40
data-component="LoadingContainer"
41
className={cn('flex items-center justify-center gap-2', className)}
42
>
0 commit comments