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} themeBuilder={themeBuilder}
switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)} switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)}
inputDisabled={inputDisabled} inputDisabled={inputDisabled}
isMobile={isMobile}
sidebarCollapseState={sidebarCollapseState} sidebarCollapseState={sidebarCollapseState}
questionIcon={ questionIcon={
initUserVariables?.avatar_url initUserVariables?.avatar_url

View File

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

View File

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

View File

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