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 6246a5c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/assistant/ResultMenu/getIconForSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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'
}
Expand Down

0 comments on commit 6246a5c

Please sign in to comment.