+
@@ -56,7 +56,7 @@ const FormItem = (props: {
}
-const Settings = () => {
+const OptionsPage = () => {
const dispatch = useAppDispatch()
const envData = useAppSelector(state => state.env.envData)
const {value: autoExpandValue, onChange: setAutoExpandValue} = useEventChecked(envData.autoExpand)
@@ -82,10 +82,7 @@ const Settings = () => {
const [transDisplayValue, setTransDisplayValue] = useState(envData.transDisplay)
const [wordsValue, setWordsValue] = useState
(envData.words)
const [fetchAmountValue, setFetchAmountValue] = useState(envData.fetchAmount??TRANSLATE_FETCH_DEFAULT)
- const [moreFold, {toggle: toggleMoreFold}] = useBoolean(true)
const [promptsFold, {toggle: togglePromptsFold}] = useBoolean(true)
- const fold = useAppSelector(state => state.env.fold)
- const totalHeight = useAppSelector(state => state.env.totalHeight)
const [promptsValue, setPromptsValue] = useState<{[key: string]: string}>(envData.prompts??{})
// const wordsList = useMemo(() => {
// const list = []
@@ -197,10 +194,8 @@ const Settings = () => {
setAiTypeValue('gemini')
}, [])
- return
-
+ return
+
}
-export default Settings
+export default OptionsPage