mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Add image?.
This commit is contained in:
parent
f90631b3fb
commit
5390370b3d
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ export function DevicesTable({ websiteId, ...props }) {
|
||||||
label={formatMessage(labels[device] || labels.unknown)}
|
label={formatMessage(labels[device] || labels.unknown)}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={`${basePath}/images/device/${device.toLowerCase() || 'unknown'}.png`}
|
src={`${basePath}/images/device/${device?.toLowerCase() || 'unknown'}.png`}
|
||||||
alt={device}
|
alt={device}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export function OSTable({ websiteId, ...props }) {
|
||||||
<FilterLink id="os" value={os}>
|
<FilterLink id="os" value={os}>
|
||||||
<img
|
<img
|
||||||
src={`${basePath}/images/os/${
|
src={`${basePath}/images/os/${
|
||||||
os.toLowerCase().replaceAll(/[^\w]+/g, '-') || 'unknown'
|
os?.toLowerCase().replaceAll(/[^\w]+/g, '-') || 'unknown'
|
||||||
}.png`}
|
}.png`}
|
||||||
alt={os}
|
alt={os}
|
||||||
width={16}
|
width={16}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue