mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-11 10:32:37 +01:00
complete renaming functions, abstracts more svg, sets title to current convo title, adds a try again feature to errors
This commit is contained in:
parent
592b7629aa
commit
5af5a97d8f
24 changed files with 512 additions and 82 deletions
|
|
@ -1,12 +1,15 @@
|
|||
import React, { useEffect, useRef } from 'react';
|
||||
import useDocumentTitle from '~/hooks/useDocumentTitle';
|
||||
import Message from './Message';
|
||||
import Landing from './Landing';
|
||||
|
||||
export default function Messages({ messages }) {
|
||||
export default function Messages({ messages, title }) {
|
||||
if (messages.length === 0) {
|
||||
return <Landing />;
|
||||
return <Landing title={title}/>;
|
||||
}
|
||||
|
||||
useDocumentTitle(title);
|
||||
|
||||
const messagesEndRef = useRef(null);
|
||||
|
||||
const scrollToBottom = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue