mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
dark mode alternates to light mode on dark theme, error state in progress
This commit is contained in:
parent
5cd50e7826
commit
0c6dc8665b
6 changed files with 118 additions and 6 deletions
|
|
@ -9,7 +9,6 @@ import { setSubmitState } from '~/store/submitSlice';
|
|||
import { setText } from '~/store/textSlice';
|
||||
|
||||
export default function TextChat({ messages, reloadConvos }) {
|
||||
// const [text, setText] = useState('');
|
||||
const dispatch = useDispatch();
|
||||
const convo = useSelector((state) => state.convo);
|
||||
const { isSubmitting } = useSelector((state) => state.submit);
|
||||
|
|
@ -47,6 +46,7 @@ export default function TextChat({ messages, reloadConvos }) {
|
|||
};
|
||||
dispatch(setSubmitState(false));
|
||||
dispatch(setMessages([...messages, currentMsg, errorResponse]));
|
||||
dispatch(setText(payload));
|
||||
return;
|
||||
};
|
||||
console.log('User Input:', payload);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue