Skip to content

Commit

Permalink
[RHOAIENG-8788]: Update loading state for project section in home page
Browse files Browse the repository at this point in the history
add dataid
  • Loading branch information
jenny-s51 committed Jul 15, 2024
1 parent 27ca9e8 commit d42e47b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions frontend/src/pages/home/projects/ProjectsLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
import {
EmptyState,
EmptyStateVariant,
Spinner,
EmptyStateHeader,
Bullseye,
} from '@patternfly/react-core';
import * as React from 'react';
import { Skeleton } from '@patternfly/react-core';

const ProjectsLoading: React.FC = () => (
<div style={{ height: '230px' }}>
<Skeleton height="75%" width="100%" screenreaderText="Loading projects" />
<Bullseye>
<EmptyState variant={EmptyStateVariant.lg} data-id="loading-empty-state">
<Spinner size="xl" />
<EmptyStateHeader titleText="Loading" headingLevel="h1" />
</EmptyState>
</Bullseye>
</div>
);

Expand Down

0 comments on commit d42e47b

Please sign in to comment.