Web:Components:DropDown:MainButton Fixed cyclic dependencies
This commit is contained in:
parent
c5bb99de1a
commit
1f3b13888a
@ -33,6 +33,7 @@ import {
|
||||
MobileProgressBarTheme,
|
||||
IconButtonMuteTheme,
|
||||
} from "./styled";
|
||||
|
||||
import { ThemeType } from "./constants";
|
||||
|
||||
const ColorTheme = forwardRef(
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user