|
1 | 1 | /* eslint-disable no-nested-ternary */ |
2 | 2 | import React, { useEffect, useState, useRef, useMemo } from 'react'; |
3 | | -import { Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelContent, Title, Text, EmptyState, EmptyStateHeader, EmptyStateBody, EmptyStateFooter, EmptyStateActions, Button, EmptyStateIcon } from '@patternfly/react-core'; |
| 3 | +import { Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelContent, Title, Content, EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateActions, Button, } from '@patternfly/react-core'; |
4 | 4 | import { ActionsColumn, Tbody, Td, ThProps, Tr } from '@patternfly/react-table'; |
5 | 5 | import { BulkSelect, BulkSelectValue } from '@patternfly/react-component-groups/dist/dynamic/BulkSelect'; |
6 | 6 | import { Pagination } from '@patternfly/react-core'; |
@@ -72,8 +72,7 @@ const empty = ( |
72 | 72 | <Tbody> |
73 | 73 | <Tr key="loading" ouiaId={`${ouiaId}-tr-loading`}> |
74 | 74 | <Td colSpan={COLUMNS.length}> |
75 | | - <EmptyState> |
76 | | - <EmptyStateHeader titleText="No data found" headingLevel="h4" icon={<EmptyStateIcon icon={CubesIcon } />} /> |
| 75 | + <EmptyState headingLevel="h4" icon={CubesIcon} titleText="No data found"> |
77 | 76 | <EmptyStateBody>There are no matching data to be displayed.</EmptyStateBody> |
78 | 77 | <EmptyStateFooter> |
79 | 78 | <EmptyStateActions> |
@@ -113,10 +112,10 @@ const RepositoryDetail: React.FunctionComponent<RepositoryDetailProps> = ({ sele |
113 | 112 | <Title className="pf-v5-u-mb-md" headingLevel="h2" ouiaId="detail-drawer-title"> |
114 | 113 | Detail of {selectedRepo?.name} |
115 | 114 | </Title> |
116 | | - <Text>Branch: {selectedRepo?.branch}</Text> |
117 | | - <Text>Pull requests: {selectedRepo?.prs}</Text> |
118 | | - <Text>Workspace: {selectedRepo?.workspace}</Text> |
119 | | - <Text>Last commit: {selectedRepo?.lastCommit}</Text> |
| 115 | + <Content component="p">Branch: {selectedRepo?.branch}</Content> |
| 116 | + <Content component="p">Pull requests: {selectedRepo?.prs}</Content> |
| 117 | + <Content component="p">Workspace: {selectedRepo?.workspace}</Content> |
| 118 | + <Content component="p">Last commit: {selectedRepo?.lastCommit}</Content> |
120 | 119 | <DrawerActions> |
121 | 120 | <DrawerCloseButton onClick={() => setSelectedRepo(undefined)} data-ouia-component-id="detail-drawer-close-btn"/> |
122 | 121 | </DrawerActions> |
|
0 commit comments