diff --git a/src/pages/Popup/WhitelistPage.tsx b/src/pages/Popup/WhitelistPage.tsx
index 800b2e7..3b87825 100644
--- a/src/pages/Popup/WhitelistPage.tsx
+++ b/src/pages/Popup/WhitelistPage.tsx
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
-import { Box, Label, Input, Flex, Button } from 'theme-ui'
+import { Box, Label, Input, Flex, Button, Close } from 'theme-ui'
import LocationInput from './LocationInput'
import ConfigurationSelect from './ConfigurationSelect'
import IPData from './IPData'
@@ -42,7 +42,7 @@ const WhitelistPage = ({ tab }: any) => {
display: tab === 'whitelist' ? 'block' : 'none',
}}
>
- Whitelist
+ Whitelist
- {whitelist.map((element, index) => {
- return (
-
-
{element}
-
- )
- })}
+ {whitelist.length ? (
+
+ {whitelist.map((element, index) => {
+ return (
+
+ {element}{' '}
+
+ setWhitelist(whitelist.filter((item) => item !== element))
+ }
+ />
+
+ )
+ })}
+
+ ) : null}
)
}
diff --git a/src/theme.ts b/src/theme.ts
index 236b3b1..555f098 100644
--- a/src/theme.ts
+++ b/src/theme.ts
@@ -10,7 +10,7 @@ export const theme: Theme = {
redDark: '#e2525a',
green: '#26de81',
greenDark: '#22c774',
- grey: '#BCC2C9',
+ grey: '#989898',
},
styles: {
root: {
@@ -27,7 +27,7 @@ export const theme: Theme = {
input: {
p: '2px 8px',
mb: '8px',
- borderColor: 'gray',
+ borderColor: 'grey',
'&:focus': {
borderColor: 'primaryDark',
outline: 'none',
@@ -35,7 +35,7 @@ export const theme: Theme = {
},
select: {
p: '2px 8px',
- borderColor: 'gray',
+ borderColor: 'grey',
'&:focus': {
borderColor: 'primaryDark',
outline: 'none',
@@ -66,5 +66,11 @@ export const theme: Theme = {
// bg: 'primaryDark',
// },
},
+ close: {
+ cursor: 'pointer',
+ color: 'text',
+ p: 0,
+ m: 0,
+ },
},
}