update i18n and style of creatioin from app template

This commit is contained in:
JzoNg
2024-02-24 14:58:00 +08:00
parent 804a090457
commit 3b190467c1
8 changed files with 67 additions and 72 deletions

View File

@ -60,7 +60,7 @@ const Apps = ({
const [currApp, setCurrApp] = React.useState<App | null>(null)
const [isShowCreateModal, setIsShowCreateModal] = React.useState(false)
const onCreate: CreateAppModalProps['onConfirm'] = async ({ name, icon, icon_background }) => {
const onCreate: CreateAppModalProps['onConfirm'] = async ({ name, icon, icon_background, description }) => {
const { app_model_config: model_config } = await fetchAppDetail(currApp?.app.id as string)
try {
@ -69,6 +69,7 @@ const Apps = ({
icon,
icon_background,
mode: currApp?.app.mode as AppMode,
description,
config: model_config,
})
setIsShowCreateModal(false)