Skip to content

Commit 72a7f7e

Browse files
feat: add search param to actions dropdown (#1113)
* feat: add search param to actions dropdown * feat: add searchable in Trigger Action and Trigger Basic View
1 parent dc579a0 commit 72a7f7e

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/@dcl/inspector/src/components/EntityInspector/ActionInspector/ActionInspector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ export default withSdk<Props>(({ sdk, entity: entityId }) => {
977977
}))
978978
]}
979979
value={action.type}
980+
searchable
980981
onChange={(e) => handleChangeType(e, idx)}
981982
/>
982983
</div>

packages/@dcl/inspector/src/components/EntityInspector/SmartItemBasicView/TriggerView/TriggerView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export default React.memo(
173173
disabled={!action.id || !trigger.actions.find((_action) => _action.id === action.id)}
174174
options={actions}
175175
value={action.name}
176+
searchable
176177
onChange={(e) => handleChangeAction(e, idx, trigger)}
177178
/>
178179
</div>

packages/@dcl/inspector/src/components/EntityInspector/TriggerInspector/TriggerAction/TriggerAction.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const TriggerActionContainer: React.FC<WithSdkProps & Props> = ({ sdk, ...props
9191
disabled={!action.id || !availableActions.get(action.id)}
9292
options={action.id && availableActions.get(action.id)?.actions ? [...actions] : []}
9393
value={action.name}
94+
searchable
9495
onChange={(e) => handleChangeAction(e, idx)}
9596
/>
9697
</div>

0 commit comments

Comments
 (0)