app templates

This commit is contained in:
JzoNg
2024-02-24 14:21:42 +08:00
parent 14cfb310e3
commit 804a090457
11 changed files with 85 additions and 273 deletions

View File

@ -9,7 +9,7 @@ import { flatten } from 'lodash-es'
import Nav from '../nav'
import { Robot, RobotActive } from '../../base/icons/src/public/header-nav/studio'
import { fetchAppDetail, fetchAppList } from '@/service/apps'
import NewAppDialog from '@/app/(commonLayout)/apps/NewAppDialog'
import CreateAppDialog from '@/app/components/app/create-app-dialog'
import type { AppListResponse } from '@/models/app'
import { useAppContext } from '@/context/app-context'
@ -54,7 +54,11 @@ const AppNav = () => {
onCreate={() => setShowNewAppDialog(true)}
onLoadmore={handleLoadmore}
/>
<NewAppDialog show={showNewAppDialog} onClose={() => setShowNewAppDialog(false)} />
<CreateAppDialog
show={showNewAppDialog}
onClose={() => setShowNewAppDialog(false)}
onSuccess={() => {}}
/>
</>
)
}