Shared:Components:DropDown: remove defaultProps

This commit is contained in:
Darya Umrikhina 2024-08-15 13:37:24 +04:00
parent 35931aa729
commit 334c9b69d2
2 changed files with 2 additions and 8 deletions

View File

@ -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 };

View File

@ -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;