diff --git a/apps/builder/src/page/Dashboard/DashboardApps/AppCard/index.tsx b/apps/builder/src/page/Dashboard/DashboardApps/AppCard/index.tsx index 168d73c981..d86a08921f 100644 --- a/apps/builder/src/page/Dashboard/DashboardApps/AppCard/index.tsx +++ b/apps/builder/src/page/Dashboard/DashboardApps/AppCard/index.tsx @@ -124,6 +124,7 @@ export const AppCard: FC = (props) => { {canEditApp ? ( + + + } + /> + )} ) } diff --git a/apps/builder/src/page/Dashboard/DashboardApps/index.tsx b/apps/builder/src/page/Dashboard/DashboardApps/index.tsx index bb19beb2d9..fa4df73270 100644 --- a/apps/builder/src/page/Dashboard/DashboardApps/index.tsx +++ b/apps/builder/src/page/Dashboard/DashboardApps/index.tsx @@ -10,7 +10,7 @@ import { useNavigate, useParams, } from "react-router-dom" -import { Button, useMessage } from "@illa-design/react" +import { Button, PlusIcon, useMessage } from "@illa-design/react" import { BASIC_APP_CONFIG } from "@/config/newAppConfig" import { Avatar } from "@/illa-public-component/Avatar" import { @@ -73,7 +73,10 @@ export const DashboardApps: FC = () => { ACTION_MANAGE.CREATE_APP, ) - const createApp = useCallback(() => { + const handleCreateApp = useCallback(() => { + track(ILLA_MIXPANEL_EVENT_TYPE.CLICK, ILLA_MIXPANEL_BUILDER_PAGE_NAME.APP, { + element: "create_new_app", + }) if (loading) return setLoading(true) fetchCreateApp({ @@ -156,15 +159,9 @@ export const DashboardApps: FC = () => { @@ -173,7 +170,11 @@ export const DashboardApps: FC = () => { }> }> - + diff --git a/apps/builder/src/page/Dashboard/DashboardApps/style.tsx b/apps/builder/src/page/Dashboard/DashboardApps/style.tsx index e413d8a794..8e194e194f 100644 --- a/apps/builder/src/page/Dashboard/DashboardApps/style.tsx +++ b/apps/builder/src/page/Dashboard/DashboardApps/style.tsx @@ -63,3 +63,14 @@ export const hoverStyle = css` } } ` + +export const emptyStyle: SerializedStyles = css` + padding: 8px; + display: flex; + flex-direction: column; + gap: 8px; + justify-content: center; + color: ${globalColor(`--${illaPrefix}-grayBlue-02`)}; + font-weight: 600; + line-height: 22px; +`