Debian Codegraph @

node/@patternfly/react-table/src/demos/examples/TableEmptyStateLoading.tsx

raw
1 import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
2 import { Bullseye, EmptyState, PageSection, Spinner } from '@patternfly/react-core';
3 import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
4
5 export const TableEmptyStateLoading: React.FunctionComponent = () => (
6 <DashboardWrapper hasPageTemplateTitle>
7 <PageSection padding={{ default: 'noPadding', xl: 'padding' }} aria-label="Empty state table loading">
8 <Table aria-label="Loading table demo">
9 <Thead>
10 <Tr>
11 <Th>Repositories</Th>
12 <Th>Branches</Th>
13 <Th>Pull requests</Th>
14 <Th>Workspaces</Th>
15 <Th>Last commit</Th>
16 </Tr>
17 </Thead>
18 <Tbody>
19 <Tr>
20 <Td colSpan={8}>
21 <Bullseye>
22 <EmptyState titleText="Loading" icon={Spinner} headingLevel="h2" />
23 </Bullseye>
24 </Td>
25 </Tr>
26 </Tbody>
27 </Table>
28 </PageSection>
29 </DashboardWrapper>
30 );