Fix Filter Button being squished #8024

pull/8031/head
voltron4lyfe 2 years ago committed by Qstick
parent f1ff7b3b61
commit 0b1b19a165

@ -4,7 +4,7 @@ import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import FilterMenuContent from './FilterMenuContent';
import Menu from './Menu';
import PageMenuButton from './PageMenuButton';
import ToolbarMenuButton from './ToolbarMenuButton';
import styles from './FilterMenu.css';
class FilterMenu extends Component {
@ -106,7 +106,7 @@ FilterMenu.propTypes = {
FilterMenu.defaultProps = {
className: styles.filterMenu,
isDisabled: false,
buttonComponent: PageMenuButton
buttonComponent: ToolbarMenuButton
};
export default FilterMenu;

@ -9,7 +9,7 @@ import styles from './ToolbarMenuButton.css';
function ToolbarMenuButton(props) {
const {
iconName,
indicator,
showIndicator,
text,
...otherProps
} = props;
@ -26,7 +26,7 @@ function ToolbarMenuButton(props) {
/>
{
indicator &&
showIndicator &&
<span
className={classNames(
styles.indicatorContainer,
@ -53,11 +53,11 @@ function ToolbarMenuButton(props) {
ToolbarMenuButton.propTypes = {
iconName: PropTypes.object.isRequired,
text: PropTypes.string,
indicator: PropTypes.bool.isRequired
showIndicator: PropTypes.bool.isRequired
};
ToolbarMenuButton.defaultProps = {
indicator: false
showIndicator: false
};
export default ToolbarMenuButton;

Loading…
Cancel
Save