Added autofill button
This commit is contained in:
parent
014a65d2a5
commit
9a2a0814f9
4 changed files with 12 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ const Table = ({ title, children }: TableProps) => {
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
border: '1px solid',
|
border: '1px solid',
|
||||||
mb: '8px',
|
mb: '12px',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
borderColor: 'grey',
|
borderColor: 'grey',
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import CheckBox from '../../Components/CheckBox'
|
||||||
import { ipData } from '../../../types'
|
import { ipData } from '../../../types'
|
||||||
import Table from '../../Components/Table'
|
import Table from '../../Components/Table'
|
||||||
import TableRow from '../../Components/TableRow'
|
import TableRow from '../../Components/TableRow'
|
||||||
|
import { Button } from 'theme-ui'
|
||||||
|
|
||||||
interface AutofillPageProps {
|
interface AutofillPageProps {
|
||||||
tab: string
|
tab: string
|
||||||
|
|
@ -108,6 +109,13 @@ const AutofillPage = ({ tab, ipData }: AutofillPageProps) => {
|
||||||
<TableRow title="Address" value={address} />
|
<TableRow title="Address" value={address} />
|
||||||
<TableRow title="Phone" value={phone} noBorder />
|
<TableRow title="Phone" value={phone} noBorder />
|
||||||
</Table>
|
</Table>
|
||||||
|
<Button
|
||||||
|
variant="primary"
|
||||||
|
sx={{ width: '100%' }}
|
||||||
|
onClick={() => console.log('click')}
|
||||||
|
>
|
||||||
|
Autofill Current Page
|
||||||
|
</Button>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ const Popup = () => {
|
||||||
<Flex
|
<Flex
|
||||||
sx={{
|
sx={{
|
||||||
width: '350px',
|
width: '350px',
|
||||||
height: '410px',
|
height: '428px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,13 @@ export const theme: Theme = {
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
primary: {
|
primary: {
|
||||||
borderRadius: 0,
|
borderRadius: '4px',
|
||||||
color: 'background',
|
color: 'background',
|
||||||
bg: 'primary',
|
bg: 'primary',
|
||||||
py: '3px',
|
py: '3px',
|
||||||
px: '8px',
|
px: '8px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
width: '100%',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
bg: 'primaryDark',
|
bg: 'primaryDark',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue