mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
💫 fix: catch constant conditions in recoil state usage (#3513)
* chore: modify eslintrc * fix: apply new rules, avoid using getter/setter tuples in conditions --------- Co-authored-by: Alexandre Germain <nihilivin@gmail.com>
This commit is contained in:
parent
e15d0d354d
commit
cd326c4cf0
6 changed files with 14 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { useRecoilState, useRecoilValue } from 'recoil';
|
||||
import { cn, defaultTextProps, optionText } from '~/utils/';
|
||||
import { Slider, InputNumber } from '~/components/ui';
|
||||
import { useLocalize } from '~/hooks';
|
||||
|
|
@ -8,7 +8,7 @@ import store from '~/store';
|
|||
export default function AutoSendTextSelector() {
|
||||
const localize = useLocalize();
|
||||
|
||||
const speechToText = useRecoilState<boolean>(store.speechToText);
|
||||
const speechToText = useRecoilValue(store.speechToText);
|
||||
const [autoSendText, setAutoSendText] = useRecoilState(store.autoSendText);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue