fix(sandbox-provider): use Loading component and add daytona doc link

- Replace hardcoded "Loading..." text with Loading component
- Add daytona documentation link to PROVIDER_DOC_LINKS
This commit is contained in:
yyh 2026-01-13 16:37:58 +08:00
parent 48295e5161
commit 5675a44ffd
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ export const SANDBOX_FIELD_CONFIGS = {
export const PROVIDER_DOC_LINKS: Record<string, string> = {
e2b: 'https://e2b.dev/docs',
daytona: 'https://www.daytona.io/docs',
docker: 'https://docs.docker.com/',
local: '',
}

View File

@ -3,6 +3,7 @@
import type { SandboxProvider } from '@/service/use-sandbox-provider'
import { memo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Loading from '@/app/components/base/loading'
import { useAppContext } from '@/context/app-context'
import { useGetSandboxProviderList } from '@/service/use-sandbox-provider'
import ConfigModal from './config-modal'
@ -31,7 +32,7 @@ const SandboxProviderPage = () => {
if (isLoading) {
return (
<div className="flex h-40 items-center justify-center">
<div className="system-sm-regular text-text-tertiary">Loading...</div>
<Loading />
</div>
)
}