Skip to content

Commit 85cfe5a

Browse files
authored
fix: add missing ref (#5361)
1 parent 3bef91a commit 85cfe5a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

web/common/src/components/LoadingContainer/LoadingContainer.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ export const LoadingContainer = React.forwardRef<
1515
HTMLDivElement,
1616
LoadingContainerProps
1717
>(
18-
({
19-
isLoading = true,
20-
side = 'left',
21-
message,
22-
children,
23-
className,
24-
}: LoadingContainerProps) => {
18+
(
19+
{
20+
isLoading = true,
21+
side = 'left',
22+
message,
23+
children,
24+
className,
25+
}: LoadingContainerProps,
26+
ref,
27+
) => {
2528
function renderLoading() {
2629
return (
2730
<>
@@ -33,6 +36,7 @@ export const LoadingContainer = React.forwardRef<
3336

3437
return isLoading ? (
3538
<div
39+
ref={ref}
3640
data-component="LoadingContainer"
3741
className={cn('flex items-center justify-center gap-2', className)}
3842
>

0 commit comments

Comments
 (0)