Skip to content

Commit

Permalink
feat: add Settings button for Independent Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Apr 2, 2023
1 parent c3ebb79 commit ef9ecdc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/IndependentPanel/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { useTranslation } from 'react-i18next'
import ConfirmButton from '../../components/ConfirmButton'
import ConversationCard from '../../components/ConversationCard'
import DeleteButton from '../../components/DeleteButton'
import { openUrl } from '../../utils/index.mjs'
import Browser from 'webextension-polyfill'

function App() {
const { t } = useTranslation()
Expand Down Expand Up @@ -128,7 +130,14 @@ function App() {
<hr />
<div className="chat-sidebar-button-group">
<ConfirmButton text={t('Clear conversations')} onConfirm={clearConversations} />
<button className="normal-button">{t('Settings')}</button>
<button
className="normal-button"
onClick={() => {
openUrl(Browser.runtime.getURL('popup.html'))
}}
>
{t('Settings')}
</button>
</div>
</div>
<div className="chat-content">
Expand Down

0 comments on commit ef9ecdc

Please sign in to comment.