feat: update desktop workflows and app center
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
ArrowUpRight,
|
||||
Clapperboard,
|
||||
LayoutGrid,
|
||||
ShoppingBag,
|
||||
} from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
@@ -18,6 +19,7 @@ import type { AppCenterItem } from '@/types/app-center';
|
||||
const APP_ICONS = {
|
||||
Clapperboard,
|
||||
LayoutGrid,
|
||||
ShoppingBag,
|
||||
};
|
||||
|
||||
function getAppIcon(icon: string) {
|
||||
@@ -56,7 +58,7 @@ export function AppCenter() {
|
||||
void window.electron.openExternal(item.url);
|
||||
return;
|
||||
}
|
||||
if (item.type === 'native' && item.route) {
|
||||
if ((item.type === 'native' || item.type === 'webview') && item.route) {
|
||||
navigate(item.route);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user