eslint
parent
5bfcd9e091
commit
242d01a13a
|
@ -50,11 +50,11 @@ export default function MessageInput(props: MessageInputProps) {
|
||||||
const context = useAppContext();
|
const context = useAppContext();
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const onCustomizeSystemPromptClick = useCallback(() => dispatch(openSystemPromptPanel()), []);
|
const onCustomizeSystemPromptClick = useCallback(() => dispatch(openSystemPromptPanel()), [dispatch]);
|
||||||
const onTemperatureClick = useCallback(() => dispatch(openTemperaturePanel()), []);
|
const onTemperatureClick = useCallback(() => dispatch(openTemperaturePanel()), [dispatch]);
|
||||||
const onChange = useCallback((e: React.ChangeEvent<HTMLTextAreaElement>) => {
|
const onChange = useCallback((e: React.ChangeEvent<HTMLTextAreaElement>) => {
|
||||||
dispatch(setMessage(e.target.value));
|
dispatch(setMessage(e.target.value));
|
||||||
}, []);
|
}, [dispatch]);
|
||||||
|
|
||||||
const pathname = useLocation().pathname;
|
const pathname = useLocation().pathname;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue