@@ -36,7 +36,7 @@ import { EditorContext } from "comps/editorState";
36
36
import { StringControl } from "../controls/codeControl" ;
37
37
import { PositionControl } from "comps/controls/dropdownControl" ;
38
38
import { dropdownControl } from "../controls/dropdownControl" ;
39
- import { IconScoutAssetType , IconscoutControl } from "../controls/iconscoutControl" ;
39
+ import { AssetType , IconscoutControl } from "../controls/iconscoutControl" ;
40
40
41
41
const Container = styled . div < {
42
42
$style : ImageStyleType | undefined ,
@@ -115,7 +115,7 @@ const getStyle = (style: ImageStyleType) => {
115
115
const EventOptions = [ clickEvent ] as const ;
116
116
const ModeOptions = [
117
117
{ label : "URL" , value : "standard" } ,
118
- { label : "Advanced " , value : "advanced " } ,
118
+ { label : "Asset Library " , value : "asset-library " } ,
119
119
] as const ;
120
120
121
121
const ContainerImg = ( props : RecordConstructorToView < typeof childrenMap > ) => {
@@ -201,8 +201,8 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
201
201
>
202
202
< AntImage
203
203
src = {
204
- props . sourceMode === 'advanced '
205
- ? props . srcIconScout ?. value
204
+ props . sourceMode === 'asset-library '
205
+ ? props . iconScoutAsset ?. value
206
206
: props . src . value
207
207
}
208
208
referrerPolicy = "same-origin"
@@ -222,7 +222,7 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
222
222
const childrenMap = {
223
223
sourceMode : dropdownControl ( ModeOptions , "standard" ) ,
224
224
src : withDefault ( StringStateControl , "https://temp.im/350x400" ) ,
225
- srcIconScout : IconscoutControl ( IconScoutAssetType . ILLUSTRATION ) ,
225
+ iconScoutAsset : IconscoutControl ( AssetType . ILLUSTRATION ) ,
226
226
onEvent : eventHandlerControl ( EventOptions ) ,
227
227
style : styleControl ( ImageStyle , 'style' ) ,
228
228
animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
@@ -253,7 +253,7 @@ let ImageBasicComp = new UICompBuilder(childrenMap, (props) => {
253
253
{ children . sourceMode . getView ( ) === 'standard' && children . src . propertyView ( {
254
254
label : trans ( "image.src" ) ,
255
255
} ) }
256
- { children . sourceMode . getView ( ) === 'advanced ' && children . srcIconScout . propertyView ( {
256
+ { children . sourceMode . getView ( ) === 'asset-library ' && children . iconScoutAsset . propertyView ( {
257
257
label : trans ( "image.src" ) ,
258
258
} ) }
259
259
</ Section >
0 commit comments