feat(conversation): add empty state title for memory conversation
- Add chatEmpty translation key to English i18n file with message "Is there anything I can help you with?" - Add chatEmpty translation key to Chinese i18n file with message "有什么我可以帮您的吗?" - Update Chat component empty state to display title using chatEmpty translation instead of only showing subTitle - Improve empty state UX by providing a welcoming greeting message to users
This commit is contained in:
@@ -262,7 +262,7 @@ const Conversation: FC = () => {
|
||||
<div className="rb:relative rb:h-screen rb:px-4 rb:flex-[1_1_auto]">
|
||||
<div className='rb:w-[760px] rb:h-screen rb:mx-auto rb:pt-10'>
|
||||
<Chat
|
||||
empty={<Empty url={ChatEmpty} className="rb:h-full" size={[320,180]} subTitle={t('memoryConversation.emptyDesc')} />}
|
||||
empty={<Empty url={ChatEmpty} className="rb:h-full" size={[320,180]} title={t('memoryConversation.chatEmpty')} subTitle={t('memoryConversation.emptyDesc')} />}
|
||||
contentClassName="rb:h-[calc(100%-152px)] "
|
||||
data={chatList}
|
||||
streamLoading={streamLoading}
|
||||
|
||||
Reference in New Issue
Block a user