Skip to content

Commit

Permalink
refactor(VariantManagement): removed unused prop enabled (#77)
Browse files Browse the repository at this point in the history
BREAKING CHANGE Removed prop `enabled`, please use `disabled` instead. This change should not affect your applications, because `enabled` was never implemented.
  • Loading branch information
Lukas742 authored and MarcusNotheis committed Aug 1, 2019
1 parent e127293 commit 5080316
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/main/__karma_snapshots__/DayPicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]} id={{...}}>
<JssProvider generateId={[Function]}>
<ThemeProvider theme={{...}}>
<DayPicker>
<ui5-daypicker class="" />
Expand Down
6 changes: 3 additions & 3 deletions packages/main/__karma_snapshots__/FilterBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<FilterBar renderSearch={[Function: renderSearch]} renderVariants={[Function: renderVariants]} displayOnly={true} innerRef={{...}} classes={{...}} theme={{...}}>
<div className="FilterBar-outerContainer---">
<div className="FilterBar-filterBarHeader---">
<Variant Management variantItems={{...}} enabled={true} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Variant Management variantItems={{...}} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Popover open={false} onAfterOpen={[Function]} headerText="Variants" placementType="Bottom" openBy={{...}} footer={{...}} className={[undefined]} innerStyles={[undefined]} tooltip={[undefined]} initialFocus={{...}} horizontalAlign="Center" verticalAlign="Center">
<div style={{...}} onClick={[Function]}>
<div className="Variant-Management--VariantManagement---">
Expand Down Expand Up @@ -125,7 +125,7 @@
<FilterBar renderVariants={[Function: renderVariants]} displayOnly={true} innerRef={{...}} classes={{...}} theme={{...}}>
<div className="FilterBar-outerContainer---">
<div className="FilterBar-filterBarHeader---">
<Variant Management variantItems={{...}} enabled={true} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Variant Management variantItems={{...}} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Popover open={false} onAfterOpen={[Function]} headerText="Variants" placementType="Bottom" openBy={{...}} footer={{...}} className={[undefined]} innerStyles={[undefined]} tooltip={[undefined]} initialFocus={{...}} horizontalAlign="Center" verticalAlign="Center">
<div style={{...}} onClick={[Function]}>
<div className="Variant-Management--VariantManagement---">
Expand Down Expand Up @@ -249,7 +249,7 @@
<FilterBar renderVariants={[Function: renderVariants]} displayOnly={true} innerRef={{...}} classes={{...}} theme={{...}}>
<div className="FilterBar-outerContainer---">
<div className="FilterBar-filterBarHeader---">
<Variant Management variantItems={{...}} enabled={true} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Variant Management variantItems={{...}} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Popover open={false} onAfterOpen={[Function]} headerText="Variants" placementType="Bottom" openBy={{...}} footer={{...}} className={[undefined]} innerStyles={[undefined]} tooltip={[undefined]} initialFocus={{...}} horizontalAlign="Center" verticalAlign="Center">
<div style={{...}} onClick={[Function]}>
<div className="Variant-Management--VariantManagement---">
Expand Down
6 changes: 3 additions & 3 deletions packages/main/__karma_snapshots__/VariantManagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider theme={{...}}>
<Variant Management variantItems={{...}} enabled={true} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Variant Management variantItems={{...}} popupTitle="Variants" initialSelectedKey={{...}} onSelect={[Function: onSelect]} closeOnItemSelect={true} placement="Bottom" level="H4" disabled={false}>
<Popover open={false} onAfterOpen={[Function]} headerText="Variants" placementType="Bottom" openBy={{...}} footer={{...}} className={[undefined]} innerStyles={[undefined]} tooltip={[undefined]} initialFocus={{...}} horizontalAlign="Center" verticalAlign="Center">
<div style={{...}} onClick={[Function]}>
<div className="Variant-Management--VariantManagement---">
Expand All @@ -29,8 +29,8 @@
</Button>
<WithWebComponent(List) onItemClick={[Function]} mode="SingleSelect" headerText="" footerText="" noDataText="" separators="All">
<ui5-list mode="SingleSelect" header-text="" footer-text="" no-data-text="" separators="All" class="">
<StandardListItem style={{...}} data-key="1" type="Active" selected={false} infoState="None">
<ui5-li style={{...}} data-key="1" type="Active" info-state="None" class="">
<StandardListItem style={{...}} data-key="1" type="Active" selected={true} infoState="None">
<ui5-li selected={true} style={{...}} data-key="1" type="Active" info-state="None" class="">
Variant 1
</ui5-li>
</StandardListItem>
Expand Down
2 changes: 0 additions & 2 deletions packages/main/src/components/VariantManagement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export interface VariantItem {
}

export interface VariantManagementPropTypes extends CommonProps {
enabled?: boolean;
placement?: PlacementType;
popupTitle?: string;
initialSelectedKey?: string;
Expand Down Expand Up @@ -185,7 +184,6 @@ const VariantManagement: FC<VariantManagementPropTypes> = forwardRef(
);

VariantManagement.defaultProps = {
enabled: true,
popupTitle: 'Variants',
initialSelectedKey: null,
onSelect: () => {},
Expand Down

0 comments on commit 5080316

Please sign in to comment.