Web:Components:DropDown:MainButton Fixed cyclic dependencies

This commit is contained in:
Akmal Isomadinov 2023-11-16 12:16:17 +05:00
parent c5bb99de1a
commit 1f3b13888a
2 changed files with 2 additions and 11 deletions

View File

@ -33,6 +33,7 @@ import {
MobileProgressBarTheme,
IconButtonMuteTheme,
} from "./styled";
import { ThemeType } from "./constants";
const ColorTheme = forwardRef(

View File

@ -1,7 +1,6 @@
import styled, { css } from "styled-components";
import NoUserSelect from "../utils/commonStyles";
import Base from "../themes/base";
import DropDown from "../drop-down";
const hoveredCss = css`
background-color: ${(props) => props.theme.mainButton.hoverBackgroundColor};
@ -34,15 +33,6 @@ const GroupMainButton = styled.div`
grid-template-columns: 1fr;
`;
const StyledDropDown = styled(DropDown)`
width: ${(props) => props.theme.mainButton.dropDown.width};
top: ${(props) => props.theme.mainButton.dropDown.top};
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`;
StyledDropDown.defaultProps = { theme: Base };
const StyledMainButton = styled.div`
${NoUserSelect}
@ -96,4 +86,4 @@ const StyledMainButton = styled.div`
`;
StyledMainButton.defaultProps = { theme: Base };
export { StyledMainButton, StyledDropDown, GroupMainButton };
export { StyledMainButton, GroupMainButton };