Skip to content

Commit 7e90d81

Browse files
committed
chore(docs): bump to latest alpha versions, updates to Nav & EmptyState
1 parent b239493 commit 7e90d81

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
"webpack-merge": "^5.9.0"
8080
},
8181
"dependencies": {
82-
"@patternfly/react-core": "6.0.0-alpha.7",
83-
"@patternfly/react-icons": "6.0.0-alpha.5",
84-
"@patternfly/react-styles": "6.0.0-alpha.5",
82+
"@patternfly/react-core": "6.0.0-alpha.19",
83+
"@patternfly/react-icons": "6.0.0-alpha.9",
84+
"@patternfly/react-styles": "6.0.0-alpha.9",
8585
"@storybook/builder-webpack5": "^7.5.3",
8686
"react": "^18",
8787
"react-dom": "^18",

src/app/AppLayout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {
8888
);
8989

9090
const Navigation = (
91-
<Nav id="nav-primary-simple" theme="light">
91+
<Nav id="nav-primary-simple">
9292
<NavList id="nav-list-simple">
9393
{routes.map(
9494
(route, idx) => route.label && (!route.routes ? renderNavItem(route, idx) : renderNavGroup(route, idx))

src/app/NotFound/NotFound.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import {
55
EmptyState,
66
EmptyStateBody,
77
EmptyStateFooter,
8-
EmptyStateHeader,
9-
EmptyStateIcon,
108
PageSection,
119
} from '@patternfly/react-core';
1210
import { useHistory } from 'react-router-dom';
@@ -24,14 +22,13 @@ const NotFound: React.FunctionComponent = () => {
2422

2523
return (
2624
<PageSection>
27-
<EmptyState variant="full">
28-
<EmptyStateHeader titleText="404 Page not found" icon={<EmptyStateIcon icon={ExclamationTriangleIcon} />} headingLevel="h1" />
29-
<EmptyStateBody>
30-
We didn&apos;t find a page that matches the address you navigated to.
31-
</EmptyStateBody><EmptyStateFooter>
32-
<GoHomeBtn />
33-
</EmptyStateFooter></EmptyState>
34-
</PageSection>
25+
<EmptyState titleText="404 Page not found" variant="full" icon={ExclamationTriangleIcon} >
26+
<EmptyStateBody>
27+
We didn&apos;t find a page that matches the address you navigated to.
28+
</EmptyStateBody><EmptyStateFooter>
29+
<GoHomeBtn />
30+
</EmptyStateFooter></EmptyState>
31+
</PageSection>
3532
)
3633
};
3734

src/app/Support/Support.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import {
66
EmptyStateActions,
77
EmptyStateBody,
88
EmptyStateFooter,
9-
EmptyStateHeader,
10-
EmptyStateIcon,
119
EmptyStateVariant,
1210
PageSection,
1311
Text,
@@ -22,8 +20,7 @@ export interface ISupportProps {
2220
// eslint-disable-next-line prefer-const
2321
let Support: React.FunctionComponent<ISupportProps> = () => (
2422
<PageSection>
25-
<EmptyState variant={EmptyStateVariant.full}>
26-
<EmptyStateHeader titleText="Empty State (Stub Support Module)" icon={<EmptyStateIcon icon={CubesIcon} />} headingLevel="h1" />
23+
<EmptyState variant={EmptyStateVariant.full} titleText="Empty State (Stub Support Module)" icon={CubesIcon} >
2724
<EmptyStateBody>
2825
<TextContent>
2926
<Text component="p">

0 commit comments

Comments
 (0)