diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.jsx b/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx similarity index 93% rename from src-ui/views/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.jsx rename to src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx index 3eaa21f9..85ae9928 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx @@ -1,4 +1,4 @@ -import styles from "./DeeplAuthKey.module.scss"; +import styles from "./AuthKey.module.scss"; import { useI18n } from "@useI18n"; import clsx from "clsx"; import CircularProgress from "@mui/material/CircularProgress"; @@ -6,7 +6,7 @@ import { _Entry } from "../_atoms/_entry/_Entry"; import { useState, useRef } from "react"; import { useEffect } from "react"; -export const DeeplAuthKey = (props) => { +export const AuthKey = (props) => { const { t } = useI18n(); const [is_editable, seIsEditable] = useState(false); const entryRef = useRef(null); diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss b/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.module.scss similarity index 100% rename from src-ui/views/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss rename to src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.module.scss diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/index.js b/src-ui/views/app/config_page/setting_section/setting_box/_components/index.js index 5d791c94..2e7b54ca 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/index.js +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/index.js @@ -1,6 +1,6 @@ export { ActionButton } from "./action_button/ActionButton"; export { ComputeDevice } from "./compute_device/ComputeDevice"; -export { DeeplAuthKey } from "./deepl_auth_key/DeeplAuthKey"; +export { AuthKey } from "./auth_key/AuthKey"; export { DropdownMenu, MultiDropdownMenu } from "./dropdown_menu/DropdownMenu"; export { Entry } from "./entry/Entry"; export { EntryWithSaveButton } from "./entry_with_save_button/EntryWithSaveButton"; diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/label_component/LabelComponent.jsx b/src-ui/views/app/config_page/setting_section/setting_box/_components/label_component/LabelComponent.jsx index a4a520db..ffcb9a89 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/label_component/LabelComponent.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/label_component/LabelComponent.jsx @@ -1,4 +1,5 @@ import styles from "./LabelComponent.module.scss"; +import { _OpenWebpageButton } from "../_atoms/_open_webpage_button/_OpenWebpageButton"; export const LabelComponent = (props) => { return ( @@ -8,6 +9,7 @@ export const LabelComponent = (props) => { ?
{props.desc}
: null } + {props.webpage_url && <_OpenWebpageButton webpage_url={props.webpage_url} open_webpage_label={props.open_webpage_label} /> } ); }; \ No newline at end of file diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_templates/Templates.jsx b/src-ui/views/app/config_page/setting_section/setting_box/_templates/Templates.jsx index af2ba4d9..0c0845e1 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_templates/Templates.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/_templates/Templates.jsx @@ -12,7 +12,7 @@ import { EntryWithSaveButton, HotkeysEntry, RadioButton, - DeeplAuthKey, + AuthKey, ActionButton, ComputeDevice, WordFilter, @@ -22,8 +22,6 @@ import { } from "../_components"; import { Checkbox } from "@common_components"; -import { _OpenWebpageButton } from "../_components/_atoms/_open_webpage_button/_OpenWebpageButton"; - export const useOnMouseLeaveDropdownMenu = () => { const { updateIsOpenedDropdownMenu } = useStore_IsOpenedDropdownMenu(); @@ -97,7 +95,7 @@ const CommonContainer = ({ if (label_type === "label_component") { return (