mirror of
https://github.com/skidoodle/hostinfo
synced 2026-04-28 09:37:37 +02:00
Bug fixes and performance improvements
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { CpuChipIcon, ServerIcon } from '@heroicons/react/24/outline';
|
||||
import { Header } from './Header';
|
||||
import { InfoRow } from './Info';
|
||||
import type { HostInfo } from '@/utils/types';
|
||||
import type { GeoData } from '@/utils/types';
|
||||
|
||||
export const LocalNetworkView = ({ data }: { data: HostInfo }) => {
|
||||
export const LocalNetworkView = ({ data, domain }: { data: GeoData, domain: string }) => {
|
||||
return (
|
||||
<div className="w-80 bg-white dark:bg-gray-950 font-sans">
|
||||
<Header
|
||||
title={data.domain}
|
||||
title={domain}
|
||||
flagCode="unknown"
|
||||
/>
|
||||
<div className="p-5">
|
||||
@@ -20,7 +20,7 @@ export const LocalNetworkView = ({ data }: { data: HostInfo }) => {
|
||||
<InfoRow
|
||||
icon={ServerIcon}
|
||||
label="IP Address"
|
||||
value={data.network?.ip || null}
|
||||
value={data.ip}
|
||||
canCopy
|
||||
iconColor="text-blue-500"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user