refactor(web): mark Props of explore/try-app/preview components as read-only (#25219) (#37135)

Co-authored-by: archievi <13202986+archievi@users.noreply.github.com>
This commit is contained in:
Archie 2026-06-07 08:36:03 -04:00 committed by GitHub
parent 1ae98b3ea4
commit 72c92fa60a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ import { basePath } from '@/utils/var'
import { useTextGenerationCurrentProviderAndModelAndModelList } from '../../../header/account-setting/model-provider-page/hooks'
type Props = {
appId: string
readonly appId: string
}
const defaultModelConfig = {

View File

@ -7,8 +7,8 @@ import WorkflowPreview from '@/app/components/workflow/workflow-preview'
import { useGetTryAppFlowPreview } from '@/service/use-try-app'
type Props = {
appId: string
className?: string
readonly appId: string
readonly className?: string
}
const FlowAppPreview: FC<Props> = ({

View File

@ -6,8 +6,8 @@ import BasicAppPreview from './basic-app-preview'
import FlowAppPreview from './flow-app-preview'
type Props = {
appId: string
appDetail: TryAppInfo
readonly appId: string
readonly appDetail: TryAppInfo
}
const Preview: FC<Props> = ({