Skip to content

Commit

Permalink
Removed vpn tab
Browse files Browse the repository at this point in the history
  • Loading branch information
z0ccc committed Dec 30, 2022
1 parent d492304 commit 8b6c0a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
9 changes: 2 additions & 7 deletions src/Popup/Pages/LocationPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { RotateCw } from 'react-feather'

interface LocationPageProps {
tab: string
setTab: (tab: string) => void
}

const LocationPage = ({ tab, setTab }: LocationPageProps) => {
const LocationPage = ({ tab }: LocationPageProps) => {
const [browserDefault, setBrowserDefault] = useState(true)
const [ipData, setIpData] = useState<ipData>()
const [ipInfo, setIpInfo] = useState('loading...')
Expand Down Expand Up @@ -254,11 +253,7 @@ const LocationPage = ({ tab, setTab }: LocationPageProps) => {
}}
>
Vytal does not change your IP address. To change your IP address you
will need a{' '}
<Button variant="text" onClick={() => setTab('vpn')}>
VPN or proxy
</Button>
.
will need a VPN or proxy.
</Box>
</Page>
)
Expand Down
11 changes: 3 additions & 8 deletions src/Popup/Pages/SettingsPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { Button, Link, Text } from 'theme-ui'
import { Link, Text } from 'theme-ui'
import Page from '../../Components/Page'
import InfoItem from './InfoItem'

interface SettingsPageProps {
tab: string
setTab: (tab: string) => void
}

const SettingsPage = ({ tab, setTab }: SettingsPageProps) => {
const SettingsPage = ({ tab }: SettingsPageProps) => {
return (
<Page isCurrentTab={tab === 'settings'} title={'Info'}>
<InfoItem title={'Hide Debugging Notification Bar'}>
Expand All @@ -28,11 +27,7 @@ const SettingsPage = ({ tab, setTab }: SettingsPageProps) => {
</InfoItem>
<InfoItem title={'Change IP Address'}>
Vytal does not change your IP address. To change your IP address you
will need a{' '}
<Button variant="text" onClick={() => setTab('vpn')}>
VPN or proxy
</Button>
.
will need a VPN or proxy.
</InfoItem>
{/* <InfoItem title={'Vytal vs Similar Extensions'}>
Vytal utilizes the debugger API to spoof data which is completely
Expand Down
10 changes: 5 additions & 5 deletions src/Popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ const Popup = () => {
active={tab === 'userAgent'}
onClick={() => setTab('userAgent')}
/>
<TabItem
{/* <TabItem
Icon={<img src={VpnIcon} className="App-logo" alt="logo" />}
active={tab === 'vpn'}
onClick={() => setTab('vpn')}
/>
/> */}
{/* <TabItem
Icon={<Sliders size={20} />}
active={tab === 'settings'}
Expand All @@ -75,10 +75,10 @@ const Popup = () => {
/>
</Flex>
<Box sx={{ m: '16px', width: '100%' }}>
<LocationPage tab={tab} setTab={setTab} />
<LocationPage tab={tab} />
<UserAgentPage tab={tab} />
<VpnPage tab={tab} />
<SettingsPage tab={tab} setTab={setTab} />
{/* <VpnPage tab={tab} /> */}
<SettingsPage tab={tab} />
</Box>
</Flex>
</ThemeProvider>
Expand Down

0 comments on commit 8b6c0a9

Please sign in to comment.