Skip to content

Commit

Permalink
fix(docs): Fix ErrorState examples (patternfly#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Aug 18, 2024
1 parent 4be89ad commit 23da25f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import ErrorState from "@patternfly/react-component-groups/dist/dynamic/ErrorState";

export const BasicExample: React.FunctionComponent = () => <ErrorState errorTitle='Sample error title' errorDescription='Sample error description' />;
export const BasicExample: React.FunctionComponent = () => <ErrorState titleText='Sample error title' bodyText='Sample error description' />;
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Button } from '@patternfly/react-core';
import ErrorState from "@patternfly/react-component-groups/dist/dynamic/ErrorState";

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

0 comments on commit 23da25f

Please sign in to comment.