@@ -8,12 +8,11 @@ import {
88 Space ,
99 Switch ,
1010 Tabs ,
11- Tooltip ,
1211} from "antd" ;
1312import React , { useCallback , useEffect , useState } from "react" ;
1413import { useTranslation } from "react-i18next" ;
15- import InfoCircleOutlined from "@ant-design/icons/InfoCircleOutlined" ;
1614import "./SettingsWindow.css" ;
15+ import TooltipLabel from "./TooltipLabel" ;
1716import "./Window.css" ;
1817
1918const { TextArea } = Input ;
@@ -43,13 +42,6 @@ const SettingsWindow = (props) => {
4342 form . submit ( ) ;
4443 } , [ form ] ) ;
4544
46- const BilibiliCookiesConfigLabel = (
47- < Tooltip title = { t ( "bilibili_cookies_tooltip" ) } >
48- < span > { t ( "cookie" ) } </ span >
49- < InfoCircleOutlined className = "icon-info" />
50- </ Tooltip >
51- ) ;
52-
5345 return (
5446 < Space
5547 className = { `settings-window-space ${ className } ` }
@@ -142,10 +134,15 @@ const SettingsWindow = (props) => {
142134 < Switch />
143135 </ Form . Item >
144136 < Form . Item
145- label = { BilibiliCookiesConfigLabel }
137+ label = {
138+ < TooltipLabel
139+ tooltip = { t ( "bilibili_cookie_tooltip" ) }
140+ label = { t ( "cookie" ) }
141+ />
142+ }
146143 name = { [ "providers" , "mv" , "bilibili" , "cookie" ] }
147144 >
148- < Input />
145+ < Input . Password />
149146 </ Form . Item >
150147 < Divider plain orientation = "left" style = { { marginTop : 0 } } >
151148 { t ( "ncm_mv" ) }
@@ -168,7 +165,12 @@ const SettingsWindow = (props) => {
168165 < Switch />
169166 </ Form . Item >
170167 < Form . Item
171- label = { t ( "api_key" ) }
168+ label = {
169+ < TooltipLabel
170+ tooltip = { t ( "youtube_api_key_tooltip" ) }
171+ label = { t ( "api_key" ) }
172+ />
173+ }
172174 name = { [ "providers" , "mv" , "youtube" , "key" ] }
173175 >
174176 < Input . Password />
0 commit comments