Skip to content

Commit fdc8050

Browse files
updated naming for iconScoutAsset
1 parent 7ee4135 commit fdc8050

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/controlButton.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { useEffect, useRef, useState } from "react";
3939
import ReactResizeDetector from "react-resize-detector";
4040

4141
import { useContext } from "react";
42-
import { IconScoutAssetType, IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl";
42+
import { AssetType, IconscoutControl } from "@lowcoder-ee/comps/controls/iconscoutControl";
4343

4444
const Container = styled.div<{ $style: any }>`
4545
height: 100%;
@@ -173,7 +173,7 @@ const typeOptions = [
173173

174174
const ModeOptions = [
175175
{ label: "Standard", value: "standard" },
176-
{ label: "Advanced", value: "advanced" },
176+
{ label: "Asset Library", value: "asset-library" },
177177
] as const;
178178

179179
function isDefault(type?: string) {
@@ -198,7 +198,7 @@ const childrenMap = {
198198
form: SelectFormControl,
199199
sourceMode: dropdownControl(ModeOptions, "standard"),
200200
prefixIcon: IconControl,
201-
prefixIconScout: IconscoutControl(IconScoutAssetType.ICON),
201+
iconScoutAsset: IconscoutControl(AssetType.ICON),
202202
style: ButtonStyleControl,
203203
viewRef: RefControl<HTMLElement>,
204204
restrictPaddingOnRotation:withDefault(StringControl, 'controlButton')
@@ -241,7 +241,7 @@ let ButtonTmpComp = (function () {
241241

242242
setStyle(container?.clientHeight + "px", container?.clientWidth + "px");
243243
};
244-
console.log(props.prefixIconScout);
244+
245245
return (
246246
<EditorContext.Consumer>
247247
{(editorState) => (
@@ -292,11 +292,11 @@ let ButtonTmpComp = (function () {
292292
{props.prefixIcon}
293293
</IconWrapper>
294294
)}
295-
{props.sourceMode === 'advanced' && props.prefixIconScout && (
295+
{props.sourceMode === 'asset-library' && props.iconScoutAsset && (
296296
<IconScoutWrapper
297297
$style={{ ...props.style, size: props.iconSize }}
298298
>
299-
<img src={props.prefixIconScout.value} />
299+
<img src={props.iconScoutAsset.value} />
300300
</IconScoutWrapper>
301301
)}
302302
</Button100>
@@ -319,7 +319,7 @@ let ButtonTmpComp = (function () {
319319
{children.sourceMode.getView() === 'standard' && children.prefixIcon.propertyView({
320320
label: trans("button.icon"),
321321
})}
322-
{children.sourceMode.getView() === 'advanced' &&children.prefixIconScout.propertyView({
322+
{children.sourceMode.getView() === 'asset-library' &&children.iconScoutAsset.propertyView({
323323
label: trans("button.icon"),
324324
})}
325325
</Section>

0 commit comments

Comments
 (0)