mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
cleanup
This commit is contained in:
parent
a5a0eab7f7
commit
9871127114
1 changed files with 9 additions and 28 deletions
|
|
@ -1,14 +1,7 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from 'react-router-dom';
|
||||||
import {
|
import { RecoilRoot, atom, selector, useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil';
|
||||||
RecoilRoot,
|
import buildTree from '~/utils/buildTree';
|
||||||
atom,
|
|
||||||
selector,
|
|
||||||
useRecoilState,
|
|
||||||
useRecoilValue,
|
|
||||||
useSetRecoilState,
|
|
||||||
} from "recoil";
|
|
||||||
import buildTree from "~/utils/buildTree";
|
|
||||||
|
|
||||||
// current submission
|
// current submission
|
||||||
// submit any new value to this state will cause new message to be send.
|
// submit any new value to this state will cause new message to be send.
|
||||||
|
|
@ -22,28 +15,16 @@ import buildTree from "~/utils/buildTree";
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const submission = atom({
|
const submission = atom({
|
||||||
key: "submission",
|
key: 'submission',
|
||||||
default: null,
|
default: null
|
||||||
});
|
});
|
||||||
|
|
||||||
const isSubmitting = atom({
|
const isSubmitting = atom({
|
||||||
key: "isSubmitting",
|
key: 'isSubmitting',
|
||||||
default: false,
|
default: false
|
||||||
});
|
|
||||||
|
|
||||||
const lastResponse = atom({
|
|
||||||
key: "lastResponse",
|
|
||||||
default: '',
|
|
||||||
});
|
|
||||||
|
|
||||||
const source = atom({
|
|
||||||
key: "source",
|
|
||||||
default: null,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
submission,
|
submission,
|
||||||
isSubmitting,
|
isSubmitting
|
||||||
lastResponse,
|
|
||||||
source,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue