Skip to content

Commit

Permalink
fix: rename wrapperClassName to indicatorWrapperClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmd committed Dec 2, 2021
1 parent ede44c4 commit c981912
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/component/src/molecules/loadingView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export interface LoadingViewProps extends ViewProps {
* @default true
*/
isLazy?: boolean;
indicatorWrapperClassName?: string | undefined;
/** @deprecated Use indicatorWrapperClassName instead */
wrapperClassName?: string | undefined;
indicator?: JSX.Element;
}
Expand All @@ -25,6 +27,7 @@ const LoadingView = ({
isLoading,
isLazy = true,
wrapperClassName,
indicatorWrapperClassName = wrapperClassName,
indicator = defaultLoader,
...rest
}: LoadingViewProps) => {
Expand All @@ -36,7 +39,7 @@ const LoadingView = ({
{isLoading && (
<View
testID={LoadingView.testIDs.loadingContainer}
className={classNames(classes.wrapper, wrapperClassName)}
className={classNames(classes.wrapper, indicatorWrapperClassName)}
>
{indicator}
</View>
Expand Down

0 comments on commit c981912

Please sign in to comment.