Web:Components:Main-Button: Refactoring: the id removed from GroupMainButton component

This commit is contained in:
Akmal Isomadinov 2022-11-09 15:59:16 +05:00
parent c790439098
commit 1f348ab7e9

View File

@ -8,6 +8,7 @@ import { ColorTheme, ThemeType } from "@docspace/common/components/ColorTheme";
const MainButton = (props) => {
const { text, model, isDropdown, isDisabled, clickAction } = props;
const { id, ...rest } = props;
const ref = useRef();
const menuRef = useRef(null);
@ -39,9 +40,10 @@ const MainButton = (props) => {
};
return (
<GroupMainButton {...props} ref={ref}>
<GroupMainButton {...rest} ref={ref}>
<ColorTheme
{...props}
{...rest}
id={id}
onClick={onMainButtonClick}
themeId={ThemeType.MainButton}
>