Skip to content

Commit b7109c5

Browse files
committed
[Fix]: antd errors for environments
1 parent 0009f4a commit b7109c5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

client/packages/lowcoder/src/pages/setting/environments/components/ContactLowcoderModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
100100
width={800}
101101
centered
102102
style={{ top: 20 }}
103-
bodyStyle={{ padding: '24px' }}
103+
styles={{ body: { padding: '24px' } }}
104104
>
105105
{/* Environment Context Section */}
106106
<Card
@@ -110,7 +110,7 @@ const ContactLowcoderModal: React.FC<ContactLowcoderModalProps> = ({
110110
background: '#fafafa',
111111
border: '1px solid #f0f0f0'
112112
}}
113-
bodyStyle={{ padding: '16px' }}
113+
styles={{ body: { padding: '16px' } }}
114114
>
115115
<Row gutter={[16, 8]} align="middle">
116116
<Col>

client/packages/lowcoder/src/pages/setting/environments/components/EnvironmentsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const EnvironmentsTable: React.FC<EnvironmentsTableProps> = ({
112112
border: '1px solid #f0f0f0',
113113
position: 'relative'
114114
}}
115-
bodyStyle={{ padding: '16px' }}
115+
styles={{ body: { padding: '16px' } }}
116116
onClick={() => handleRowClick(env)}
117117
>
118118
{/* Subtle overlay for unlicensed environments */}

client/packages/lowcoder/src/pages/setting/environments/components/UnlicensedEnvironmentView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const UnlicensedEnvironmentView: React.FC<UnlicensedEnvironmentViewProps> = ({
9292
background: 'white',
9393
overflow: 'hidden'
9494
}}
95-
bodyStyle={{ padding: '48px 32px' }}
95+
styles={{ body: { padding: '48px 32px' } }}
9696
>
9797
{/* Status Icon */}
9898
<div style={{ marginBottom: '24px' }}>

client/packages/lowcoder/src/pages/setting/environments/components/WorkspaceHeader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const HeaderWrapper = styled.div`
4343
margin-bottom: 24px;
4444
`;
4545

46-
const GradientBanner = styled.div<{ avatarColor: string }>`
47-
background: linear-gradient(135deg, ${props => props.avatarColor} 0%, rgba(24, 144, 255, 0.8) 100%);
46+
const GradientBanner = styled.div<{ $avatarColor: string }>`
47+
background: linear-gradient(135deg, ${props => props.$avatarColor} 0%, rgba(24, 144, 255, 0.8) 100%);
4848
height: 140px;
4949
position: relative;
5050
overflow: hidden;
@@ -77,7 +77,7 @@ const GradientBanner = styled.div<{ avatarColor: string }>`
7777
}
7878
7979
&:hover {
80-
background: linear-gradient(135deg, rgba(24, 144, 255, 0.8) 0%, ${props => props.avatarColor} 100%);
80+
background: linear-gradient(135deg, rgba(24, 144, 255, 0.8) 0%, ${props => props.$avatarColor} 100%);
8181
transition: background 1s ease-in-out;
8282
}
8383
`;
@@ -187,7 +187,7 @@ const WorkspaceHeader: React.FC<WorkspaceHeaderProps> = ({
187187

188188
return (
189189
<HeaderWrapper>
190-
<GradientBanner avatarColor={getAvatarColor(workspace.name)}>
190+
<GradientBanner $avatarColor={getAvatarColor(workspace.name)}>
191191
<StatusBadge $active={workspace.managed}>
192192
{workspace.managed ? "Managed" : "Unmanaged"}
193193
</StatusBadge>

0 commit comments

Comments
 (0)