Skip to content

Commit

Permalink
feat(ToolbarItem): remove widths prop (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora authored Sep 4, 2024
1 parent 9482ccf commit f0eeac5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The following props have been removed from Toolbar components:
| ------------------ | --------------- |
| Toolbar | `usePageInsets` |
| ToolbarContent | `alignSelf` |
| ToolbarItem | `widths` |
| ToolbarToggleGroup | `alignment` |

#### Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const renames: { [key: string]: { [key: string]: string } } = {
ToolbarContent: {
alignSelf: "",
},
ToolbarItem: {
widths: "",
},
ToolbarToggleGroup: {
alignment: "",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const renames = {
ToolbarContent: {
alignSelf: "",
},
ToolbarItem: {
widths: "",
},
ToolbarToggleGroup: {
alignment: "",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {
Toolbar,
ToolbarContent,
ToolbarItem,
ToolbarToggleGroup,
} from "@patternfly/react-core";

export const ToolbarRemovePropsInput = () => (
<>
<Toolbar usePageInsets />
<ToolbarContent alignSelf={{}} />
<ToolbarItem widths={{}} />
<ToolbarToggleGroup alignment={{}} />
</>
);
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {
Toolbar,
ToolbarContent,
ToolbarItem,
ToolbarToggleGroup,
} from "@patternfly/react-core";

export const ToolbarRemovePropsInput = () => (
<>
<Toolbar />
<ToolbarContent />
<ToolbarItem />
<ToolbarToggleGroup />
</>
);

0 comments on commit f0eeac5

Please sign in to comment.