Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrandaws committed May 8, 2024
1 parent a768997 commit 4534bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/web/src/pages/EditorialPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import React, { useCallback, useEffect, useMemo } from 'react';
import { useLocation } from 'react-router-dom';
import Card from '../components/Card';
import Button from '../components/Button';
Expand All @@ -7,6 +7,7 @@ import ExpandableField from '../components/ExpandableField';
import Switch from '../components/Switch';
import Select from '../components/Select';
import useChat from '../hooks/useChat';
import useLocalStorageBoolean from '../hooks/useLocalStorageBoolean';
import { create } from 'zustand';
import Texteditor from '../components/TextEditor';
import { DocumentComment } from 'generative-ai-use-cases-jp';
Expand Down Expand Up @@ -106,7 +107,7 @@ const EditorialPage: React.FC = () => {
const prompter = useMemo(() => {
return getPrompter(modelId);
}, [modelId]);
const [auto, setAuto] = useState(true);
const [auto, setAuto] = useLocalStorageBoolean('Auto_Editorial', true);

useEffect(() => {
updateSystemContextByModel();
Expand Down
3 changes: 2 additions & 1 deletion packages/web/src/pages/TranslatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Switch from '../components/Switch';
import useChat from '../hooks/useChat';
import useMicrophone from '../hooks/useMicrophone';
import useTyping from '../hooks/useTyping';
import useLocalStorageBoolean from '../hooks/useLocalStorageBoolean';
import { PiMicrophoneBold, PiStopCircleBold } from 'react-icons/pi';
import { create } from 'zustand';
import debounce from 'lodash.debounce';
Expand Down Expand Up @@ -112,7 +113,7 @@ const TranslatePage: React.FC = () => {
const prompter = useMemo(() => {
return getPrompter(modelId);
}, [modelId]);
const [auto, setAuto] = useState(true);
const [auto, setAuto] = useLocalStorageBoolean('Auto_Translate', true);
const [audio, setAudioInput] = useState(false); // 音声入力フラグ

useEffect(() => {
Expand Down

0 comments on commit 4534bac

Please sign in to comment.