mirror of https://github.com/langgenius/dify.git
refactor: remove isMobile prop from Chat and TryToAsk components (#29319)
This commit is contained in:
parent
9affc546c6
commit
022cfbd186
|
|
@ -284,7 +284,6 @@ const ChatWrapper = () => {
|
|||
themeBuilder={themeBuilder}
|
||||
switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)}
|
||||
inputDisabled={inputDisabled}
|
||||
isMobile={isMobile}
|
||||
sidebarCollapseState={sidebarCollapseState}
|
||||
questionIcon={
|
||||
initUserVariables?.avatar_url
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -262,7 +262,6 @@ const ChatWrapper = () => {
|
|||
themeBuilder={themeBuilder}
|
||||
switchSibling={siblingMessageId => setTargetMessageId(siblingMessageId)}
|
||||
inputDisabled={inputDisabled}
|
||||
isMobile={isMobile}
|
||||
questionIcon={
|
||||
initUserVariables?.avatar_url
|
||||
? <Avatar
|
||||
|
|
|
|||
Loading…
Reference in New Issue