mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 00:18:28 +08:00
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}
|
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
|
||||||
|
|||||||
@ -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}
|
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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()
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user