mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-31 15:48:51 +01:00
fix: add text to global state
This commit is contained in:
parent
79bb54db9c
commit
d6fdf41011
5 changed files with 19 additions and 15 deletions
|
|
@ -2,6 +2,7 @@ import conversation from './conversation';
|
|||
import conversations from './conversations';
|
||||
import models from './models';
|
||||
import user from './user';
|
||||
import text from './text';
|
||||
import submission from './submission';
|
||||
import search from './search';
|
||||
|
||||
|
|
@ -10,6 +11,7 @@ export default {
|
|||
...conversations,
|
||||
...models,
|
||||
...user,
|
||||
text,
|
||||
...submission,
|
||||
...search
|
||||
};
|
||||
|
|
|
|||
8
client/src/store/text.js
Normal file
8
client/src/store/text.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { atom } from 'recoil';
|
||||
|
||||
const text = atom({
|
||||
key: 'text',
|
||||
default: ''
|
||||
});
|
||||
|
||||
export default text;
|
||||
|
|
@ -1,17 +1,10 @@
|
|||
import React from "react";
|
||||
import {
|
||||
RecoilRoot,
|
||||
atom,
|
||||
selector,
|
||||
useRecoilState,
|
||||
useRecoilValue,
|
||||
} from "recoil";
|
||||
import { atom } from 'recoil';
|
||||
|
||||
const user = atom({
|
||||
key: "user",
|
||||
default: null,
|
||||
key: 'user',
|
||||
default: null
|
||||
});
|
||||
|
||||
export default {
|
||||
user,
|
||||
user
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue