diff --git a/src/pages/Popup/Popup.tsx b/src/pages/Popup/Popup.tsx index 43677eb..48c7c14 100644 --- a/src/pages/Popup/Popup.tsx +++ b/src/pages/Popup/Popup.tsx @@ -1,13 +1,14 @@ import React, { useState } from 'react' import { ThemeProvider, Flex, Box, Text } from 'theme-ui' import { theme } from '../../theme' -import { MapPin, Globe, ExternalLink } from 'react-feather' +import { MapPin, Globe, Settings, ExternalLink } from 'react-feather' import TabItem from './TabItem' import LocationPage from './LocationPage' import UserAgentPage from './UserAgentPage' +import SettingsPage from './SettingsPage' const Popup = () => { - const [tab, setTab] = useState('location') + const [tab, setTab] = useState('settings') return ( @@ -35,6 +36,11 @@ const Popup = () => { active={tab === 'useragent'} onClick={() => setTab('useragent')} /> + setTab('settings')} + /> window.open('https://vytal.io')} @@ -43,6 +49,7 @@ const Popup = () => { + { + return ( + + ) +} + +export default SettingsCheckBox diff --git a/src/pages/Popup/SettingsPage.tsx b/src/pages/Popup/SettingsPage.tsx new file mode 100644 index 0000000..19fcaeb --- /dev/null +++ b/src/pages/Popup/SettingsPage.tsx @@ -0,0 +1,47 @@ +import { useState, useEffect } from 'react' +import { Box, Label, Checkbox, Select } from 'theme-ui' +import SettingsCheckBox from './SettingsCheckBox' + +interface LocationPageProps { + tab: string +} + +const SettingsPage = ({ tab }: LocationPageProps) => { + const [ip, setIP] = useState(null) + + useEffect(() => {}, []) + + return ( + + Settings + + + + + + + ) +} + +export default SettingsPage diff --git a/src/pages/Popup/TabItem.tsx b/src/pages/Popup/TabItem.tsx index ef7fbcd..2bc44ce 100644 --- a/src/pages/Popup/TabItem.tsx +++ b/src/pages/Popup/TabItem.tsx @@ -1,5 +1,5 @@ import React from 'react' - +import { Button } from 'theme-ui' interface IconProps { Icon: React.ElementType active?: boolean @@ -8,10 +8,10 @@ interface IconProps { const TabItem = ({ Icon, onClick, active }: IconProps) => { return ( -
{ onClick={onClick} > -
+ ) } diff --git a/src/pages/Popup/UserAgentPage.tsx b/src/pages/Popup/UserAgentPage.tsx index 2e5a2ef..b172eb9 100644 --- a/src/pages/Popup/UserAgentPage.tsx +++ b/src/pages/Popup/UserAgentPage.tsx @@ -65,11 +65,10 @@ const UserAgentPage = ({ tab }: UserAgentPageProps) => { display: tab === 'useragent' ? 'block' : 'none', }} > - User Agent + User Agent