Shared:Components:DropDown: remove defaultProps
This commit is contained in:
parent
35931aa729
commit
334c9b69d2
@ -81,7 +81,6 @@ const DropDownItem = (props: DropDownItemProps) => {
|
||||
label = "",
|
||||
tabIndex = -1,
|
||||
textOverflow = false,
|
||||
|
||||
...rest
|
||||
} = props;
|
||||
|
||||
@ -195,9 +194,4 @@ const DropDownItem = (props: DropDownItemProps) => {
|
||||
);
|
||||
};
|
||||
|
||||
DropDownItem.defaultProps = {
|
||||
height: 32,
|
||||
heightTablet: 36,
|
||||
};
|
||||
|
||||
export { DropDownItem };
|
||||
|
@ -297,8 +297,8 @@ const DropDown = ({
|
||||
const getItemHeight = (item: React.ReactElement) => {
|
||||
const isTabletDevice = isTablet();
|
||||
|
||||
const height = item?.props.height;
|
||||
const heightTablet = item?.props.heightTablet;
|
||||
const height = item?.props.height ?? 32;
|
||||
const heightTablet = item?.props.heightTablet ?? 36;
|
||||
|
||||
if (item && item.props.isSeparator) {
|
||||
return isTabletDevice ? 16 : 12;
|
||||
|
Loading…
Reference in New Issue
Block a user