Skip to content

Commit

Permalink
remove import from index for loading spinner component
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Puzzo <[email protected]>
  • Loading branch information
jpuzz0 committed Jan 30, 2025
1 parent 6dbcc99 commit fe718c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/components/LoadingSpinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ type LoadingSpinnerProps = PropsWithChildren &
};

const LoadingSpinner: FC<LoadingSpinnerProps> = ({ isLoading, children, ...spinnerProps }) =>
isLoading ? <Spinner {...spinnerProps} /> : children;
isLoading ? <Spinner {...spinnerProps} /> : <>{children}</>;

export default LoadingSpinner;
1 change: 0 additions & 1 deletion packages/common/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export * from './FormGroupWithHelpText';
export * from './HelpIconPopover';
export * from './Icons';
export * from './LoadingDots';
export { default as LoadingSpinner } from './LoadingSpinner';
export * from './Page';
export * from './QueryClientHoc';
export * from './TableView';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { useModal } from 'src/modules/Providers/modals';
import { getResourceUrl } from 'src/modules/Providers/utils';
import { useForkliftTranslation } from 'src/utils/i18n';

import { LoadingSpinner } from '@kubev2v/common';
import LoadingSpinner from '@kubev2v/common/src/components/LoadingSpinner';
import { PlanModel, PlanModelRef } from '@kubev2v/types';
import { Button, Flex, FlexItem, spinnerSize, Split, SplitItem } from '@patternfly/react-core';
import StartIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
Expand Down

0 comments on commit fe718c0

Please sign in to comment.