Skip to content

Commit

Permalink
feat: TEMP drive app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea committed Oct 9, 2024
1 parent 0c0c0c0 commit 5717054
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/assistant/ResultMenu/getIconForSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ import EncryptedFolderIcon from './EncryptedFolderIcon'
// import IconEncryptedFolder from 'modules/views/Folder/EncryptedFolderIcon'

export const getIconForSearchResult = (searchResult) => {
if (searchResult.doc.type === 'io.cozy.apps') {
console.log('APP', searchResult)
return {
type: 'app',
app: searchResult.doc
}
}

console.log('getIconForSearchResult', searchResult)
if (searchResult.type === 'notes') {
return {
Expand All @@ -48,14 +56,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'
}
Expand Down

0 comments on commit 5717054

Please sign in to comment.