refactor: remove isMobile prop from Chat and TryToAsk components (#29319)

This commit is contained in:
yyh 2025-12-09 15:11:05 +08:00 committed by GitHub
parent 9affc546c6
commit 022cfbd186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 7 deletions

View File

@ -284,7 +284,6 @@ const ChatWrapper = () => {
themeBuilder={themeBuilder}
switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)}
inputDisabled={inputDisabled}
isMobile={isMobile}
sidebarCollapseState={sidebarCollapseState}
questionIcon={
initUserVariables?.avatar_url

View File

@ -71,7 +71,6 @@ export type ChatProps = {
onFeatureBarClick?: (state: boolean) => void
noSpacing?: boolean
inputDisabled?: boolean
isMobile?: boolean
sidebarCollapseState?: boolean
}
@ -110,7 +109,6 @@ const Chat: FC<ChatProps> = ({
onFeatureBarClick,
noSpacing,
inputDisabled,
isMobile,
sidebarCollapseState,
}) => {
const { t } = useTranslation()
@ -321,7 +319,6 @@ const Chat: FC<ChatProps> = ({
<TryToAsk
suggestedQuestions={suggestedQuestions}
onSend={onSend}
isMobile={isMobile}
/>
)
}

View File

@ -8,12 +8,10 @@ import Divider from '@/app/components/base/divider'
type TryToAskProps = {
suggestedQuestions: string[]
onSend: OnSend
isMobile?: boolean
}
const TryToAsk: FC<TryToAskProps> = ({
suggestedQuestions,
onSend,
isMobile,
}) => {
const { t } = useTranslation()

View File

@ -262,7 +262,6 @@ const ChatWrapper = () => {
themeBuilder={themeBuilder}
switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)}
inputDisabled={inputDisabled}
isMobile={isMobile}
questionIcon={
initUserVariables?.avatar_url
? <Avatar