Punycode support. Closes #2170
This commit is contained in:
1 parent
b47847958a
commit
8004afe63d
8 files changed
+40
-5
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
useRegionNames,
|
||||
} from '@/components/hooks';
|
||||
import { GROUPED_DOMAINS } from '@/lib/constants';
|
||||
import { decodePunycodeDomain } from '@/lib/format';
|
||||
|
||||
export interface MetricLabelProps {
|
||||
type: string;
|
||||
@@ -113,7 +114,7 @@ export function MetricLabel({ type, data }: MetricLabelProps) {
|
||||
type="referrer"
|
||||
value={label}
|
||||
externalUrl={`https://${label}`}
|
||||
label={!label && t(labels.none)}
|
||||
label={!label ? t(labels.none) : decodePunycodeDomain(label)}
|
||||
icon={<Favicon domain={label} />}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user