mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Updated session profile page. Added TypeIcon component. Added useRegionNames hook.
This commit is contained in:
parent
ac60d08ee5
commit
c3c3b46ef6
313 changed files with 197 additions and 94 deletions
18
src/components/common/TypeIcon.tsx
Normal file
18
src/components/common/TypeIcon.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
export function TypeIcon({
|
||||
type,
|
||||
value,
|
||||
}: {
|
||||
type: 'browser' | 'country' | 'device' | 'os';
|
||||
value: string;
|
||||
}) {
|
||||
return (
|
||||
<img
|
||||
src={`${process.env.basePath || ''}/images/${type}/${value || 'unknown'}.png`}
|
||||
alt={value}
|
||||
width={type === 'country' ? undefined : 16}
|
||||
height={type === 'country' ? undefined : 16}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default TypeIcon;
|
||||
Loading…
Add table
Add a link
Reference in a new issue