Skip to content

Commit be39538

Browse files
fixed antd warnings
1 parent 0a147b4 commit be39538

File tree

13 files changed

+31
-17
lines changed

13 files changed

+31
-17
lines changed

client/packages/lowcoder-design/src/components/colorSelect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const ColorSelect = (props: ColorSelectProps) => {
6060
<Popover
6161
trigger={trigger}
6262
placement="left"
63-
destroyTooltipOnHide={true}
63+
destroyOnHidden={true}
6464
onOpenChange={(value) => {
6565
setVisible(value);
6666
}}

client/packages/lowcoder-design/src/components/iconSelect/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const IconPopup = (props: {
292292
placement="bottom"
293293
align={{ offset: [0, -7, 0, 0] }}
294294
getPopupContainer={(node: any) => node.parentNode}
295-
destroyTooltipOnHide
295+
destroyOnHidden
296296
>
297297
<IconItemContainer
298298
tabIndex={0}
@@ -374,7 +374,7 @@ export const IconSelectBase = (props: {
374374
}
375375
}}
376376
// when dragging is allowed, always re-location to avoid the popover exceeds the screen
377-
destroyTooltipOnHide
377+
destroyOnHidden
378378
content={
379379
<IconPopup
380380
onChange={props.onChange}

client/packages/lowcoder-design/src/components/shapeSelect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export const ShapeSelectBase = (props: {
453453
}
454454
}}
455455
// when dragging is allowed, always re-location to avoid the popover exceeds the screen
456-
destroyTooltipOnHide
456+
destroyOnHidden
457457
content={
458458
<IconPopup
459459
onChange={props.onChange}

client/packages/lowcoder/src/api/enterpriseApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const getBranding = async (orgId: string = '') => {
102102
}
103103
return {
104104
...data,
105-
config_set: JSON.parse(data.config_set),
105+
config_set: data?.config_set ? JSON.parse(data.config_set) : {},
106106
};
107107
};
108108

client/packages/lowcoder/src/components/ErrorFallback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ErrorFallback = (props: {
5656
return (
5757

5858
<StyledFlex align="center" justify="center" vertical>
59-
{Boolean(errorImage) && false
59+
{Boolean(errorImage)
6060
? <StyledErrorImage src={errorImage} />
6161
: <StyledErrorIcon />
6262
}

client/packages/lowcoder/src/components/PermissionDialog/Permission.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,10 @@ const PermissionSelector = (props: {
365365
})}
366366
</AddPermissionsSelect>
367367
<AddRoleSelect
368-
dropdownStyle={{
369-
width: "fit-content",
368+
styles={{
369+
popup: {
370+
root: { width: "fit-content" }
371+
}
370372
}}
371373
$isVisible={roleSelectVisible}
372374
variant="borderless"

client/packages/lowcoder/src/components/PermissionDialog/PermissionList.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ function PermissionLiItem(props: {
115115
) : (
116116
<StyledRoleSelect
117117
style={{ marginRight: "4px" }}
118-
dropdownStyle={{
119-
width: "100px",
118+
styles={{
119+
popup: {
120+
root: { width: "100px" }
121+
},
120122
}}
121123
defaultValue={permissionItem.role}
122124
variant="borderless"

client/packages/lowcoder/src/comps/comps/selectInputComp/selectCompConstants.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,10 @@ export const SelectUIView = (
276276
{originNode}
277277
</DropdownStyled>
278278
)}
279-
dropdownStyle={{
280-
padding: 0,
279+
styles={{
280+
popup: {
281+
root: { padding: 0 },
282+
}
281283
}}
282284
menuItemSelectedIcon={props.mode ? <MultiselectTagIcon title="" /> : ""}
283285
onChange={props.onChange}

client/packages/lowcoder/src/comps/controls/dropdownControl.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ function DropdownPropertyView<T extends OptionsType>(props: DropdownPropertyView
6767
showSearch={params.showSearch}
6868
onChange={onChange}
6969
disabled={params.disabled}
70-
dropdownStyle={props.dropdownStyle}
70+
styles={{
71+
popup: {
72+
root: props.dropdownStyle
73+
}
74+
}}
7175
labelStyle={props.labelStyle}
7276
/>
7377
);

client/packages/lowcoder/src/comps/controls/iconscoutControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export const IconPicker = (props: {
387387
background: "transparent",
388388
}
389389
}}
390-
destroyTooltipOnHide
390+
destroyOnHidden
391391
content={
392392
<Draggable handle=".dragHandle" nodeRef={draggableRef}>
393393
<PopupContainer ref={draggableRef}>

client/packages/lowcoder/src/comps/controls/tourStepControl.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ function EditorStateDropdownPropertyView<T extends OptionsType>(props: DropdownP
310310
showSearch={true}
311311
onChange={onChange}
312312
disabled={params.disabled}
313-
dropdownStyle={props.dropdownStyle}
313+
styles={{
314+
popup: {
315+
root: props.dropdownStyle
316+
}
317+
}}
314318
labelStyle={props.labelStyle}
315319
/>
316320
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const CreateEnvironmentModal: React.FC<CreateEnvironmentModalProps> = ({
7070
open={visible}
7171
onCancel={handleCancel}
7272
maskClosable={true}
73-
destroyOnClose={true}
73+
destroyOnHidden={true}
7474
footer={[
7575
<Button key="back" onClick={handleCancel}>
7676
Cancel

client/packages/lowcoder/src/pages/setting/hubspotModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function HubspotModal({ open, onClose, orgId, deploymentIds }: Props) {
8383
onCancel={onClose}
8484
footer={null}
8585
width={720}
86-
destroyOnClose
86+
destroyOnHidden
8787
>
8888
<Space direction="vertical" size="large" style={{ width: "100%" }}>
8989
{/* Info Header Card */}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy