Skip to content

Commit

Permalink
refact: use HW NIC icon; tweak usage of "virtual" and "virtualized"
Browse files Browse the repository at this point in the history
Signed-off-by: thediveo <[email protected]>
  • Loading branch information
thediveo committed Jul 24, 2024
1 parent 7c2ae8e commit f0d758f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webui/src/components/nifinfomodal/NifInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import { styled } from '@mui/material'
import { NetworkInterface } from 'models/gw'
import { Alert, Button, Dialog, DialogActions, DialogContent, DialogTitle, IconButton, Snackbar, Tooltip } from '@mui/material'
import ClearIcon from '@mui/icons-material/Clear'
import LanIcon from '@mui/icons-material/Lan'
import { ContentCopy } from '@mui/icons-material'
import CloseIcon from '@mui/icons-material/Close'

import HwNicIcon from 'icons/nifs/HardwareNic'

const NifDialogTitle = styled(DialogTitle)(({theme}) => ({
'& .close': {
position: 'relative',
Expand Down Expand Up @@ -116,7 +117,7 @@ export const NifInfoModalProvider = ({ children }: NifInfoModalProviderProps) =>
onClose={handleClose}
>
<NifDialogTitle>
<LanIcon fontSize="inherit" />&nbsp;Network Interface Information
<HwNicIcon fontSize="inherit" />&nbsp;Network Interface Information
<CloseButton
className="close"
aria-label="close"
Expand All @@ -128,7 +129,7 @@ export const NifInfoModalProvider = ({ children }: NifInfoModalProviderProps) =>
<Contents dividers>
<Details>
{prop('interface name', nif.name)}
{prop('type/kind', nif.kind || '(virtual) hardware')}
{prop('type/kind', nif.kind ? `virtual ${nif.kind}` : '(virtualized) hardware')}
{prop('driver', nif.driverinfo.driver)}
{prop('firmware version', nif.driverinfo.fwversion !== 'N/A' && nif.driverinfo.fwversion)}
{prop('ext ROM version', nif.driverinfo.eromversion)}
Expand Down

0 comments on commit f0d758f

Please sign in to comment.