mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 18:21:34 +03:00
parent
7ea6c246ce
commit
ab95f8ec12
@ -53,16 +53,16 @@ const appIndex = function (apps) {
|
||||
const applications = [];
|
||||
Object.keys(apps)
|
||||
.filter((e) => {
|
||||
return apps[e]?.type?.basic;
|
||||
return !['weather','clock'].includes(e);
|
||||
})
|
||||
.sort((a, b) => {
|
||||
return a.localeCompare(b);
|
||||
})
|
||||
.map((e) => {
|
||||
const obj = result(
|
||||
apps[e].type.basic.title,
|
||||
apps[e].type.basic.linkedUrl,
|
||||
apps[e].type.basic.title,
|
||||
apps[e].type?.basic?.title || apps[e].type.custom?.tile || e,
|
||||
apps[e]?.type.basic?.linkedUrl || apps[e]?.type.custom?.linkedUrl || '',
|
||||
apps[e]?.type?.basic?.title || apps[e].type.custom?.tile || e,
|
||||
null
|
||||
);
|
||||
applications.push(obj);
|
||||
|
@ -81,12 +81,15 @@ export class OmniboxResult extends Component<OmniboxResultProps, OmniboxResultSt
|
||||
if (
|
||||
defaultApps.includes(icon.toLowerCase()) ||
|
||||
icon.toLowerCase() === 'links' ||
|
||||
icon.toLowerCase() === 'terminal'
|
||||
icon.toLowerCase() === 'terminal' ||
|
||||
icon === 'btc-wallet'
|
||||
) {
|
||||
if (icon === 'Link') {
|
||||
icon = 'Collection';
|
||||
} else if (icon === 'Terminal') {
|
||||
icon = 'Dojo';
|
||||
} else if (icon === 'btc-wallet') {
|
||||
icon = 'Bitcoin';
|
||||
}
|
||||
graphic = (
|
||||
<Icon
|
||||
|
Loading…
Reference in New Issue
Block a user