From d0cb12f10e3c911c8bd286df22a246eaa756af52 Mon Sep 17 00:00:00 2001 From: Alan Daniel Date: Tue, 27 Jan 2026 10:54:20 -0400 Subject: [PATCH] nits --- .../Partners/PartnerApplicationForm.tsx | 3 +- .../components/Supasquad/CountrySelector.tsx | 32 ++++++++++++++++--- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/apps/www/components/Partners/PartnerApplicationForm.tsx b/apps/www/components/Partners/PartnerApplicationForm.tsx index b51ff43f909..4244b8fd205 100644 --- a/apps/www/components/Partners/PartnerApplicationForm.tsx +++ b/apps/www/components/Partners/PartnerApplicationForm.tsx @@ -512,8 +512,7 @@ const PartnerApplicationForm: FC = ({ className }) => { {isCheckingSlug && (
)} diff --git a/apps/www/components/Supasquad/CountrySelector.tsx b/apps/www/components/Supasquad/CountrySelector.tsx index 47f0221f14e..45239a321ab 100644 --- a/apps/www/components/Supasquad/CountrySelector.tsx +++ b/apps/www/components/Supasquad/CountrySelector.tsx @@ -1,11 +1,16 @@ import { Select_Shadcn_ as Select, SelectContent_Shadcn_ as SelectContent, + SelectGroup_Shadcn_ as SelectGroup, SelectItem_Shadcn_ as SelectItem, + SelectLabel_Shadcn_ as SelectLabel, SelectTrigger_Shadcn_ as SelectTrigger, SelectValue_Shadcn_ as SelectValue, } from 'ui' +// Common countries shown at the top +const COMMON_COUNTRY_CODES = ['US', 'GB', 'CA', 'AU', 'DE', 'FR', 'NL', 'IN', 'BR', 'JP'] + // Country data with flags and names (alphabetically sorted) const countries = [ { code: 'AF', name: 'Afghanistan', flag: '🇦🇫' }, @@ -168,6 +173,12 @@ export function CountrySelector({ onValueChange, placeholder = 'Select your country', }: CountrySelectorProps) { + const commonCountries = COMMON_COUNTRY_CODES.map((code) => + countries.find((c) => c.code === code) + ).filter(Boolean) as (typeof countries)[number][] + + const otherCountries = countries.filter((c) => !COMMON_COUNTRY_CODES.includes(c.code)) + return ( )