@@ -27,10 +27,12 @@ import Browser from 'webextension-polyfill'
2727import { languageList } from '../../config/language.mjs'
2828import PropTypes from 'prop-types'
2929import { config as menuConfig } from '../../content-script/menu-tools'
30+ import { PencilIcon } from '@primer/octicons-react'
3031
3132GeneralPart . propTypes = {
3233 config : PropTypes . object . isRequired ,
3334 updateConfig : PropTypes . func . isRequired ,
35+ setTabIndex : PropTypes . func . isRequired ,
3436}
3537
3638function formatDate ( date ) {
@@ -86,7 +88,7 @@ async function checkBilling(apiKey, apiUrl) {
8688 }
8789}
8890
89- export function GeneralPart ( { config, updateConfig } ) {
91+ export function GeneralPart ( { config, updateConfig, setTabIndex } ) {
9092 const { t, i18n } = useTranslation ( )
9193 const [ balance , setBalance ] = useState ( null )
9294 const [ apiModes , setApiModes ] = useState ( [ ] )
@@ -154,7 +156,18 @@ export function GeneralPart({ config, updateConfig }) {
154156 </ select >
155157 </ label >
156158 < label >
157- < legend > { t ( 'API Mode' ) } </ legend >
159+ < legend style = { { display : 'flex' , alignItems : 'center' , gap : '8px' } } >
160+ { t ( 'API Mode' ) }
161+ < div
162+ style = { { cursor : 'pointer' } }
163+ onClick = { ( e ) => {
164+ e . preventDefault ( )
165+ setTabIndex ( 2 )
166+ } }
167+ >
168+ < PencilIcon />
169+ </ div >
170+ </ legend >
158171 < span style = "display: flex; gap: 15px;" >
159172 < select
160173 style = {
0 commit comments