Skip to content

Commit ef9ecdc

Browse files
committed
feat: add Settings button for Independent Panel
1 parent c3ebb79 commit ef9ecdc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/pages/IndependentPanel/App.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { useTranslation } from 'react-i18next'
1313
import ConfirmButton from '../../components/ConfirmButton'
1414
import ConversationCard from '../../components/ConversationCard'
1515
import DeleteButton from '../../components/DeleteButton'
16+
import { openUrl } from '../../utils/index.mjs'
17+
import Browser from 'webextension-polyfill'
1618

1719
function App() {
1820
const { t } = useTranslation()
@@ -128,7 +130,14 @@ function App() {
128130
<hr />
129131
<div className="chat-sidebar-button-group">
130132
<ConfirmButton text={t('Clear conversations')} onConfirm={clearConversations} />
131-
<button className="normal-button">{t('Settings')}</button>
133+
<button
134+
className="normal-button"
135+
onClick={() => {
136+
openUrl(Browser.runtime.getURL('popup.html'))
137+
}}
138+
>
139+
{t('Settings')}
140+
</button>
132141
</div>
133142
</div>
134143
<div className="chat-content">

0 commit comments

Comments
 (0)