Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

standardize on hatscripts flags

Steven Teya3da2958bb07
diff --git a/apps/web/ui/analytics/locations.tsx b/apps/web/ui/analytics/locations.tsx
index 1f5b7c80f5..47e56f68c1 100644
--- a/apps/web/ui/analytics/locations.tsx
+++ b/apps/web/ui/analytics/locations.tsx
@@ -58,8 +58,8 @@ export default function Locations() {
) : (
<img
alt={d.country}
- src={`https://flag.vercel.app/m/${d.country}.svg`}
- className="h-3 w-5"
+ src={`https://hatscripts.github.io/circle-flags/flags/${d.country.toLowerCase()}.svg`}
+ className="size-4 shrink-0"
/>
),
title:
diff --git a/apps/web/ui/analytics/use-analytics-filters.tsx b/apps/web/ui/analytics/use-analytics-filters.tsx
index 4016f64078..393ccabc94 100644
--- a/apps/web/ui/analytics/use-analytics-filters.tsx
+++ b/apps/web/ui/analytics/use-analytics-filters.tsx
@@ -668,8 +668,8 @@ export function useAnalyticsFilters({
icon: (
<img
alt={country}
- src={`https://flag.vercel.app/m/${country}.svg`}
- className="h-2.5 w-4"
+ src={`https://hatscripts.github.io/circle-flags/flags/${country.toLowerCase()}.svg`}
+ className="size-4 shrink-0"
/>
),
right: getFilterOptionTotal(rest),
@@ -686,8 +686,8 @@ export function useAnalyticsFilters({
icon: (
<img
alt={country}
- src={`https://flag.vercel.app/m/${country}.svg`}
- className="h-2.5 w-4"
+ src={`https://hatscripts.github.io/circle-flags/flags/${country.toLowerCase()}.svg`}
+ className="size-4 shrink-0"
/>
),
right: getFilterOptionTotal(rest),
diff --git a/apps/web/ui/customers/customer-table/use-customer-filters.tsx b/apps/web/ui/customers/customer-table/use-customer-filters.tsx
index e9b8ca13fd..318b5f64f9 100644
--- a/apps/web/ui/customers/customer-table/use-customer-filters.tsx
+++ b/apps/web/ui/customers/customer-table/use-customer-filters.tsx
@@ -49,8 +49,8 @@ export function useCustomerFilters(
getOptionIcon: (value) => (
<img
alt={value}
- src={`https://flag.vercel.app/m/${value}.svg`}
- className="h-2.5 w-4"
+ src={`https://hatscripts.github.io/circle-flags/flags/${value.toLowerCase()}.svg`}
+ className="size-4 shrink-0"
/>
),
getOptionLabel: (value) => COUNTRIES[value],