Updates session details page.

This commit is contained in:
Mike Cao 2025-06-12 00:31:09 -07:00
parent 095d1f2070
commit 1649992654
9 changed files with 123 additions and 223 deletions

View file

@ -24,7 +24,7 @@ export function useFormat() {
};
const formatCountry = (value: string): string => {
return countryNames[value] || value || labels.unknown;
return countryNames[value] || value;
};
const formatRegion = (value?: string): string => {
@ -57,7 +57,7 @@ export function useFormat() {
case 'language':
return formatLanguage(value);
default:
return value;
return typeof value === 'string' ? value : undefined;
}
};

View file

@ -14,6 +14,7 @@ export {
File,
Globe,
Grid2X2,
KeyRound,
LayoutDashboard,
Link,
ListFilter,