usecallback deps
parent
242d01a13a
commit
e3e435a283
|
@ -143,7 +143,7 @@ export default function Header(props: HeaderProps) {
|
||||||
|
|
||||||
const openSettings = useCallback(() => {
|
const openSettings = useCallback(() => {
|
||||||
dispatch(setTab(openAIApiKey ? 'options' : 'user'));
|
dispatch(setTab(openAIApiKey ? 'options' : 'user'));
|
||||||
}, [openAIApiKey]);
|
}, [dispatch, openAIApiKey]);
|
||||||
|
|
||||||
const header = useMemo(() => (
|
const header = useMemo(() => (
|
||||||
<HeaderContainer>
|
<HeaderContainer>
|
||||||
|
|
Loading…
Reference in New Issue