From 6246a5cc8faa9b25e88fe8a6bc3d195c8f00e477 Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Wed, 9 Oct 2024 10:26:52 +0200 Subject: [PATCH] feat: TEMP drive app icon --- .../ResultMenu/getIconForSearchResult.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/assistant/ResultMenu/getIconForSearchResult.js b/src/assistant/ResultMenu/getIconForSearchResult.js index 4f09882c7..c1c78b627 100644 --- a/src/assistant/ResultMenu/getIconForSearchResult.js +++ b/src/assistant/ResultMenu/getIconForSearchResult.js @@ -23,6 +23,15 @@ import EncryptedFolderIcon from './EncryptedFolderIcon' export const getIconForSearchResult = (searchResult) => { console.log('getIconForSearchResult', searchResult) + + if (searchResult.doc.type === 'io.cozy.apps') { + console.log('APP', searchResult) + return { + type: 'app', + app: searchResult.doc + } + } + if (searchResult.type === 'notes') { return { type: 'component', @@ -48,14 +57,6 @@ export const getIconForSearchResult = (searchResult) => { } } - if (searchResult.doc.type === 'io.cozy.apps') { - console.log('APP', searchResult) - return { - type: 'app', - app: searchResult.doc - } - } - return { type: 'unknown' }