refactor(web): mark Props of explore/ components as read-only (#25219) (#37290)

This commit is contained in:
Rohit Gahlawat 2026-06-10 23:51:00 +05:30 committed by GitHub
parent 162c478368
commit b4205af9b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

View File

@ -9,13 +9,13 @@ import { AppTypeIcon } from '@/app/components/app/type-selector'
import AppIcon from '@/app/components/base/app-icon'
import useGetRequirements from './use-get-requirements'
type Props = {
type Props = Readonly<{
appId: string
appDetail: TryAppInfo
categories?: string[]
className?: string
onCreate: () => void
}
}>
const headerClassName = 'system-sm-semibold-uppercase text-text-secondary mb-3'
const requirementIconSize = 20

View File

@ -26,11 +26,11 @@ import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
import { AppSourceType } from '@/service/share'
import { useThemeContext } from '../../../base/chat/embedded-chatbot/theme/theme-context'
type Props = {
type Props = Readonly<{
appId: string
appDetail: TryAppInfo
className: string
}
}>
const TryApp: FC<Props> = ({
appId,

View File

@ -7,10 +7,10 @@ import useDocumentTitle from '@/hooks/use-document-title'
import Chat from './chat'
import TextGeneration from './text-generation'
type Props = {
type Props = Readonly<{
appId: string
appDetail: TryAppInfo
}
}>
const TryApp: FC<Props> = ({
appId,

View File

@ -24,12 +24,12 @@ import { Resolution, TransferMethod } from '@/types/app'
import { userInputsFormToPromptVariables } from '@/utils/model-config'
import RunOnce from '../../../share/text-generation/run-once'
type Props = {
type Props = Readonly<{
appId: string
className?: string
isWorkflow?: boolean
appData: AppData | null
}
}>
const TextGeneration: FC<Props> = ({
appId,

View File

@ -19,13 +19,13 @@ import AppInfo from './app-info'
import Preview from './preview'
import { TypeEnum } from './types'
type Props = {
type Props = Readonly<{
appId: string
app?: AppType
categories?: string[]
onClose: () => void
onCreate: () => void
}
}>
const TryApp: FC<Props> = ({
appId,