Skip to content

Commit 99cbdac

Browse files
committed
fix(suir): remove unused checkbox props
1 parent b90d156 commit 99cbdac

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

packages/suir-component-mapper/src/files/checkbox.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { UseFieldApiComponentConfig, AnyObject } from "@data-driven-forms/react-form-renderer";
2-
import { CheckboxProps as SuirCheckboxProps, FormFieldProps, HeaderProps } from 'semantic-ui-react';
2+
import { CheckboxProps as SuirCheckboxProps } from 'semantic-ui-react';
33
import { ReactNode } from "react";
4-
import { FormFieldGridProps, HelperTextProps } from "./form-field-grid";
54
import { CommonFieldProps } from "./common-field-props";
65

76
export interface CheckboxOption extends AnyObject {
@@ -11,10 +10,6 @@ export interface CheckboxOption extends AnyObject {
1110

1211
interface InternalCheckboxProps extends SuirCheckboxProps {
1312
options?: CheckboxOption[];
14-
/** Sub components customization API */
15-
FormFieldProps?: FormFieldProps;
16-
HeaderProps?: HeaderProps;
17-
OptionsListProps?: React.HTMLProps<HTMLDivElement>;
1813
}
1914

2015
export type CheckboxProps = InternalCheckboxProps & CommonFieldProps & UseFieldApiComponentConfig;

packages/suir-component-mapper/src/files/checkbox.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,11 @@ Checkbox.propTypes = {
7171
options: PropTypes.array,
7272
/** Sub components customization API */
7373
FormFieldGridProps: PropTypes.object,
74-
FormFieldProps: PropTypes.object,
75-
HeaderProps: PropTypes.object,
76-
OptionsListProps: PropTypes.object,
7774
HelperTextProps: PropTypes.object
7875
};
7976

8077
Checkbox.defaultProps = {
8178
FormFieldGridProps: {},
82-
FormFieldProps: {},
83-
HeaderProps: {},
84-
OptionsListProps: {},
8579
HelperTextProps: {}
8680
};
8781

0 commit comments

Comments
 (0)