Skip to content

Commit

Permalink
fix: Center spinner, console error
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Nov 24, 2023
1 parent 4e3a029 commit 220820a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/routes/InventoryOrEdgeGroupDetailsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { inventoryHasEdgeSystems } from '../Utilities/edge';
import useEdgeGroups from '../Utilities/hooks/useEdgeGroups';
import useFeatureFlag from '../Utilities/useFeatureFlag';
import PropTypes from 'prop-types';
import { Spinner } from '@patternfly/react-core';
import { Bullseye, Spinner } from '@patternfly/react-core';
import EdgeGroupsDetailsView from '../components/InventoryGroupDetail/EdgeGroupDetails';
import InventoryGroupDetail from './InventoryGroupDetail';

Expand All @@ -27,7 +27,7 @@ const InventoryOrEdgeGroupDetailsView = () => {
}
})();
} catch (e) {
console.log(e);
console.error(e);
}
}, []);

Expand All @@ -42,7 +42,11 @@ const InventoryOrEdgeGroupDetailsView = () => {
/>
);
} else {
return <Spinner />;
return (
<Bullseye>
<Spinner />
</Bullseye>
);
}
};

Expand Down

0 comments on commit 220820a

Please sign in to comment.