Added org to connection Data
This commit is contained in:
parent
9a2a0814f9
commit
4b24ab3dd0
4 changed files with 4 additions and 6 deletions
|
|
@ -109,11 +109,7 @@ const AutofillPage = ({ tab, ipData }: AutofillPageProps) => {
|
|||
<TableRow title="Address" value={address} />
|
||||
<TableRow title="Phone" value={phone} noBorder />
|
||||
</Table>
|
||||
<Button
|
||||
variant="primary"
|
||||
sx={{ width: '100%' }}
|
||||
onClick={() => console.log('click')}
|
||||
>
|
||||
<Button variant="primary" onClick={() => console.log('click')}>
|
||||
Autofill Current Page
|
||||
</Button>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ const ConnectionPage = ({ tab, ipData }: ConnectionPageProps) => {
|
|||
<TableRow title="Latitude" value={`${ipData?.lat}`} />
|
||||
<TableRow title="Longitude" value={`${ipData?.lon}`} />
|
||||
<TableRow title="ISP" value={ipData?.isp} />
|
||||
<TableRow title="Organization" value={ipData?.org} />
|
||||
<TableRow
|
||||
title="Proxy/VPN"
|
||||
value={ipData?.proxy ? 'True' : 'False'}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@ export interface ipData {
|
|||
lat: number
|
||||
lon: number
|
||||
isp: string
|
||||
org: string
|
||||
proxy: boolean
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const getIp = () =>
|
||||
fetch(
|
||||
'http://ip-api.com/json?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,proxy,query'
|
||||
'http://ip-api.com/json?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,query'
|
||||
)
|
||||
.then((response) => response.json())
|
||||
.then((ipData) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue