Skip to content

Commit cac3a05

Browse files
committed
Fix PR review comment to make use of classNames function
1 parent 32fe174 commit cac3a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-ts/lib/loading-spinner/LoadingSpinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const LoadingSpinner: FC<LoadingSpinnerProps> = ({ hide, className, type = 'Norm
2727

2828
const isOverlay: boolean = type === 'Overlay'
2929
return (
30-
<div className={classNames(styles['loading-spinner'], styles.show, isOverlay ? styles.overlay : '', className)}>
30+
<div className={classNames(styles['loading-spinner'], styles.show, {[styles.overlay]: isOverlay}, className)}>
3131
<PuffLoader color={'#2196f3'} loading={true} size={100} />
3232
</div>
3333
)

0 commit comments

Comments
 (0)