Added autofill button

This commit is contained in:
z0ccc 2022-10-19 01:46:38 -04:00
parent 014a65d2a5
commit 9a2a0814f9
4 changed files with 12 additions and 3 deletions

View file

@ -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',
}} }}

View file

@ -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>
) )
} }

View file

@ -55,7 +55,7 @@ const Popup = () => {
<Flex <Flex
sx={{ sx={{
width: '350px', width: '350px',
height: '410px', height: '428px',
}} }}
> >
<Flex <Flex

View file

@ -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',
}, },