refactor: import SandboxProvider type from @/types and remove retry:0

Move type imports to @/types/sandbox-provider instead of re-exporting
from service file. Remove unnecessary retry:0 options to use React
Query's default retry behavior.
This commit is contained in:
yyh
2026-01-14 10:10:04 +08:00
parent 3b78f9c2a5
commit 2279b605c6
5 changed files with 4 additions and 9 deletions

View File

@ -1,7 +1,7 @@
'use client'
import type { FormRefObject, FormSchema } from '@/app/components/base/form/types'
import type { SandboxProvider } from '@/service/use-sandbox-provider'
import type { SandboxProvider } from '@/types/sandbox-provider'
import { RiExternalLinkLine, RiLock2Fill } from '@remixicon/react'
import { memo, useCallback, useMemo, useRef } from 'react'
import { useTranslation } from 'react-i18next'

View File

@ -1,6 +1,6 @@
'use client'
import type { SandboxProvider } from '@/service/use-sandbox-provider'
import type { SandboxProvider } from '@/types/sandbox-provider'
import { memo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Loading from '@/app/components/base/loading'

View File

@ -1,6 +1,6 @@
'use client'
import type { SandboxProvider } from '@/service/use-sandbox-provider'
import type { SandboxProvider } from '@/types/sandbox-provider'
import { RiEqualizer2Line } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'

View File

@ -1,6 +1,6 @@
'use client'
import type { SandboxProvider } from '@/service/use-sandbox-provider'
import type { SandboxProvider } from '@/types/sandbox-provider'
import { memo, useCallback } from 'react'
import { Trans, useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'