refactor(web): mark Props of header/account-setting components as read-only (#25219) (#37293)

This commit is contained in:
Rohit Gahlawat 2026-06-10 23:48:43 +05:30 committed by GitHub
parent 62a1476a95
commit beec13ed61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

View File

@ -16,9 +16,9 @@ import { useAppContext } from '@/context/app-context'
import { systemFeaturesQueryOptions } from '@/features/system-features/client'
import { useWorkspacePermissions } from '@/service/use-workspace'
type Props = {
type Props = Readonly<{
onOperate: () => void
}
}>
const TransferOwnership = ({ onOperate }: Props) => {
const { t } = useTranslation()

View File

@ -9,10 +9,10 @@ import { useAppContext } from '@/context/app-context'
import { ownershipTransfer, sendOwnerEmail, verifyOwnerEmail } from '@/service/common'
import MemberSelector from './member-selector'
type Props = {
type Props = Readonly<{
show: boolean
onClose: () => void
}
}>
enum STEP {
start = 'start',
verify = 'verify',

View File

@ -12,11 +12,11 @@ import { useTranslation } from 'react-i18next'
import Input from '@/app/components/base/input'
import { useMembers } from '@/service/use-common'
type Props = {
type Props = Readonly<{
value?: string
onSelect: (value: string) => void
exclude?: string[]
}
}>
const MemberSelector: FC<Props> = ({
value,

View File

@ -27,9 +27,9 @@ import { providerToPluginId } from './utils'
type SystemModelConfigStatus = 'no-provider' | 'none-configured' | 'partially-configured' | 'fully-configured'
type Props = {
type Props = Readonly<{
searchText: string
}
}>
const FixedModelProvider = ['langgenius/openai/openai', 'langgenius/anthropic/anthropic']

View File

@ -15,10 +15,10 @@ import { useLocale } from '@/context/i18n'
import useTheme from '@/hooks/use-theme'
import { getMarketplaceUrl } from '@/utils/var'
type Props = {
type Props = Readonly<{
detail: PluginDetail
onUpdate?: () => void
}
}>
const ProviderCardActions: FC<Props> = ({ detail, onUpdate }) => {
const { t } = useTranslation()