Components:TextArea: remove background for copy icon

This commit is contained in:
Timofey Boyko 2023-11-08 16:54:37 +03:00
parent b179efeeae
commit 85c59b1075
3 changed files with 6 additions and 4 deletions

View File

@ -13,12 +13,14 @@ class SocialButton extends React.Component {
}
render() {
const { label, iconName, IconComponent, isConnect, ...otherProps } =
const { label, iconName, IconComponent, image, isConnect, ...otherProps } =
this.props;
return (
<StyledSocialButton isConnect={isConnect} {...otherProps}>
<div>
{IconComponent ? (
{image ? (
<>{image}</>
) : IconComponent ? (
<IconComponent className="iconWrapper" />
) : (
<ReactSVG className="iconWrapper" src={iconName} />

View File

@ -105,7 +105,7 @@ const Textarea = ({
isJSONField={isJSONField}
onFocus={enableCopy ? onTextareaClick : undefined}
>
{isJSONField && (
{(isJSONField || enableCopy) && (
<CopyIconWrapper
className={classNameCopyIcon}
isJSONField={isJSONField}

View File

@ -164,7 +164,7 @@ const CopyIconWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
background-color: ${(props) => props.theme.backgroundColor};
// background-color: ${(props) => props.theme.backgroundColor};
`;
CopyIconWrapper.defaultProps = { theme: Base };