Skip to content

Commit b6d74e0

Browse files
committed
chore: remove donation to comply with apple's review policy
1 parent 41ebe47 commit b6d74e0

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/popup/Popup.jsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import '@picocss/pico'
22
import { useEffect, useState } from 'react'
33
import {
4-
setUserConfig,
5-
getUserConfig,
6-
TriggerMode,
7-
ThemeMode,
84
defaultConfig,
9-
Models,
5+
getUserConfig,
106
isUsingApiKey,
117
isUsingCustomModel,
8+
Models,
9+
setUserConfig,
10+
ThemeMode,
11+
TriggerMode,
1212
} from '../config/index.mjs'
13-
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'
13+
import { Tab, TabList, TabPanel, Tabs } from 'react-tabs'
1414
import 'react-tabs/style/react-tabs.css'
1515
import './styles.scss'
1616
import { MarkGithubIcon } from '@primer/octicons-react'
@@ -21,6 +21,7 @@ import wechatpay from './donation/wechatpay.jpg'
2121
import bugmeacoffee from './donation/bugmeacoffee.png'
2222
import { useWindowTheme } from '../hooks/use-window-theme.mjs'
2323
import { languageList } from '../config/language.mjs'
24+
import { isSafari } from '../utils/index.mjs'
2425

2526
function GeneralPart({ config, updateConfig }) {
2627
const [balance, setBalance] = useState(null)
@@ -433,7 +434,7 @@ function Popup() {
433434
<Tab className="popup-tab">SelectionTools</Tab>
434435
<Tab className="popup-tab">SiteAdapters</Tab>
435436
<Tab className="popup-tab">Advanced</Tab>
436-
<Tab className="popup-tab">Donation</Tab>
437+
{isSafari() ? null : <Tab className="popup-tab">Donation</Tab>}
437438
</TabList>
438439

439440
<TabPanel>
@@ -448,9 +449,11 @@ function Popup() {
448449
<TabPanel>
449450
<AdvancedPart config={config} updateConfig={updateConfig} />
450451
</TabPanel>
451-
<TabPanel>
452-
<Donation />
453-
</TabPanel>
452+
{isSafari() ? null : (
453+
<TabPanel>
454+
<Donation />
455+
</TabPanel>
456+
)}
454457
</Tabs>
455458
</form>
456459
<hr />

0 commit comments

Comments
 (0)