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

This commit is contained in:
Rohit Gahlawat 2026-06-10 23:49:37 +05:30 committed by GitHub
parent beec13ed61
commit be2034f681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -5,11 +5,11 @@ import * as React from 'react'
import AppIcon from '@/app/components/base/app-icon'
import { appDefaultIconBackground } from '@/config'
type Props = {
type Props = Readonly<{
data?: SiteInfo
isShow: boolean
onClose: () => void
}
}>
const InfoModal = ({
isShow,

View File

@ -21,11 +21,11 @@ import { usePathname, useRouter } from '@/next/navigation'
import { webAppLogout } from '@/service/webapp-auth'
import InfoModal from './info-modal'
type Props = {
type Props = Readonly<{
data?: SiteInfo
placement?: Placement
hideLogout?: boolean
}
}>
const MenuDropdown: FC<Props> = ({
data,

View File

@ -9,9 +9,9 @@ import {
} from 'react-papaparse'
import { Csv as CSVIcon } from '@/app/components/base/icons/src/public/files'
type Props = {
type Props = Readonly<{
onParsed: (data: string[][]) => void
}
}>
const CSVReader: FC<Props> = ({
onParsed,