From eb38b48bc84caea9e20db81afcd574e4a5296cb2 Mon Sep 17 00:00:00 2001 From: Gerardo Pacheco Date: Tue, 17 Aug 2021 15:46:29 +0200 Subject: [PATCH 1/2] Mobile - Autocomplete - Show icons for embed suggestions --- .../components/src/autocomplete/autocompleter-ui.native.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/src/autocomplete/autocompleter-ui.native.js b/packages/components/src/autocomplete/autocompleter-ui.native.js index de10ca08a8d9b..a0899de07c0d0 100644 --- a/packages/components/src/autocomplete/autocompleter-ui.native.js +++ b/packages/components/src/autocomplete/autocompleter-ui.native.js @@ -188,7 +188,9 @@ export function getAutoCompleterUI( autocompleter ) { > Date: Wed, 18 Aug 2021 16:53:53 +0200 Subject: [PATCH 2/2] Mobile - Autocompleter - Move icon source to a variable --- .../src/autocomplete/autocompleter-ui.native.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/components/src/autocomplete/autocompleter-ui.native.js b/packages/components/src/autocomplete/autocompleter-ui.native.js index a0899de07c0d0..9d6113e0a67ce 100644 --- a/packages/components/src/autocomplete/autocompleter-ui.native.js +++ b/packages/components/src/autocomplete/autocompleter-ui.native.js @@ -166,6 +166,9 @@ export function getAutoCompleterUI( autocompleter ) { iconStyles, isActive && activeIconStyles ); + const iconSource = + option?.value?.icon?.src || + option?.value?.icon; return (