feat: logo (#1356)

This commit is contained in:
zxhlyh
2023-10-16 15:26:25 +08:00
committed by GitHub
parent 2feb16d957
commit 61e816f24c
34 changed files with 101 additions and 160 deletions

View File

@@ -26,6 +26,8 @@ import { replaceStringWithValues } from '@/app/components/app/configuration/prom
import { userInputsFormToPromptVariables } from '@/utils/model-config'
import type { InstalledApp } from '@/models/explore'
import { AlertTriangle } from '@/app/components/base/icons/src/vender/solid/alertsAndFeedback'
import LogoHeader from '@/app/components/base/logo/logo-embeded-chat-header'
import LogoAvatar from '@/app/components/base/logo/logo-embeded-chat-avatar'
export type IMainProps = {
isInstalledApp?: boolean
@@ -488,7 +490,7 @@ const Main: FC<IMainProps> = ({
}
const difyIcon = (
<div className={s.difyHeader}></div>
<LogoHeader />
)
if (appUnavailable)
@@ -567,7 +569,7 @@ const Main: FC<IMainProps> = ({
suggestionList={suggestQuestions}
displayScene='web'
isShowSpeechToText={speechToTextConfig?.enabled}
answerIconClassName={s.difyIcon}
answerIcon={<LogoAvatar className='relative shrink-0' />}
/>
</div>
</div>)