mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
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:
parent
48295e5161
commit
5675a44ffd
@ -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: '',
|
||||
}
|
||||
|
||||
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user