Skip to content

Commit 23da25f

Browse files
committed
fix(docs): Fix ErrorState examples (patternfly#148)
1 parent 4be89ad commit 23da25f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import React from 'react';
22
import ErrorState from "@patternfly/react-component-groups/dist/dynamic/ErrorState";
33

4-
export const BasicExample: React.FunctionComponent = () => <ErrorState errorTitle='Sample error title' errorDescription='Sample error description' />;
4+
export const BasicExample: React.FunctionComponent = () => <ErrorState titleText='Sample error title' bodyText='Sample error description' />;

packages/module/patternfly-docs/content/extensions/component-groups/examples/ErrorState/ErrorStateFooterExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Button } from '@patternfly/react-core';
33
import ErrorState from "@patternfly/react-component-groups/dist/dynamic/ErrorState";
44

55
// eslint-disable-next-line no-console
6-
export const BasicExample: React.FunctionComponent = () => <ErrorState errorTitle='Sample error title' errorDescription='Sample error description' customFooter={<Button variant="secondary" onClick={() => console.log("Custom button clicked")}>
6+
export const BasicExample: React.FunctionComponent = () => <ErrorState titleText='Sample error title' bodyText='Sample error description' customFooter={<Button variant="secondary" onClick={() => console.log("Custom button clicked")}>
77
Custom action
88
</Button>}/>;

0 commit comments

Comments
 (0)