Skip to content

Commit 707c149

Browse files
committed
formating removed-10
1 parent 956e1ff commit 707c149

File tree

1 file changed

+8
-12
lines changed
  • client/packages/lowcoder/src/comps/comps/buttonComp

1 file changed

+8
-12
lines changed

client/packages/lowcoder/src/comps/comps/buttonComp/linkComp.tsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ const Link = styled(Button)<{
3737
font-family:${props.$style.fontFamily};
3838
font-weight:${props.$style.textWeight};
3939
border: ${props.$style.borderWidth} solid ${props.$style.border};
40-
border-radius:${props.$style.radius ? props.$style.radius : '0px'};
41-
text-transform:${props.$style.textTransform ? props.$style.textTransform : ''};
42-
text-decoration:${props.$style.textDecoration ? props.$style.textDecoration : ''} !important;
40+
border-radius:${props.$style.radius ? props.$style.radius:"0px"};
41+
text-transform:${props.$style.textTransform ? props.$style.textTransform:""};
42+
text-decoration:${props.$style.textDecoration ? props.$style.textDecoration:""} !important;
4343
background-color: ${props.$style.background};
4444
&:hover {
4545
color: ${props.$style.hoverText} !important;
@@ -49,7 +49,7 @@ const Link = styled(Button)<{
4949
}
5050
`}
5151
52-
&.ant-btn {
52+
&.ant-btn {
5353
display: inline-flex;
5454
align-items: center;
5555
> span {
@@ -101,18 +101,14 @@ const LinkTmpComp = (function () {
101101
$style={props.style}
102102
loading={props.loading}
103103
disabled={props.disabled}
104-
onClick={() => props.onEvent('click')}
105-
type={'link'}
104+
onClick={() => props.onEvent("click")}
105+
type={"link"}
106106
>
107107
{hasChildren && (
108108
<span>
109-
{hasIcon(props.prefixIcon) && (
110-
<IconWrapper>{props.prefixIcon}</IconWrapper>
111-
)}
109+
{hasIcon(props.prefixIcon) && <IconWrapper>{props.prefixIcon}</IconWrapper>}
112110
{!!props.text && props.text}
113-
{hasIcon(props.suffixIcon) && (
114-
<IconWrapper>{props.suffixIcon}</IconWrapper>
115-
)}
111+
{hasIcon(props.suffixIcon) && <IconWrapper>{props.suffixIcon}</IconWrapper>}
116112
</span>
117113
)}
118114
</Link>

0 commit comments

Comments
 (0)