Skip to content

Commit

Permalink
Loader Default Props Set
Browse files Browse the repository at this point in the history
Signed-off-by: cs-308-2023 <[email protected]>
  • Loading branch information
ADI-ROXX committed Jan 19, 2025
1 parent 1178b1c commit fef765d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/jaeger-ui/src/components/common/LoadingIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ type LoadingIndicatorProps = {
style?: React.CSSProperties;
};

export default function LoadingIndicator(props: LoadingIndicatorProps) {
const { centered, vcentered, className, small, ...rest } = props;
export default function LoadingIndicator({
centered = false,
vcentered = false,
className = undefined,
small = false,
...rest
}: LoadingIndicatorProps) {
const cls = `
LoadingIndicator
${centered ? 'is-centered' : ''}
Expand All @@ -35,10 +40,4 @@ export default function LoadingIndicator(props: LoadingIndicatorProps) {
${className || ''}
`;
return <LuLoader2 className={cls} {...rest} />;
}

LoadingIndicator.defaultProps = {
centered: false,
className: undefined,
small: false,
};
}

0 comments on commit fef765d

Please sign in to comment.