Skip to content

Commit

Permalink
fix a variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkhanjani committed Nov 13, 2024
1 parent 18b5da9 commit 5af404e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/snippets/phone-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const CountrySelect = ({
<CommandEmpty>No country found.</CommandEmpty>
<CommandGroup>
{countryList.map(({ value, label }) =>
countryCode ? (
value ? (
<CountrySelectOption
key={value}
country={value}
Expand Down Expand Up @@ -156,7 +156,7 @@ const CountrySelectOption = ({
<CommandItem className="gap-2" onSelect={() => onChange(country)}>
<FlagComponent country={country} countryName={countryName} />
<span className="flex-1 text-sm">{countryName}</span>
<span className="text-sm text-foreground/50">{`+${RPNInput.getCountryCallingCode(country)}`}</span>
<span className="text-foreground/50 text-sm">{`+${RPNInput.getCountryCallingCode(country)}`}</span>
<CheckIcon
className={`ml-auto size-4 ${country === selectedCountry ? "opacity-100" : "opacity-0"}`}
/>
Expand All @@ -168,7 +168,7 @@ const FlagComponent = ({ country, countryName }: RPNInput.FlagProps) => {
const Flag = flags[country];

return (
<span className="flex h-4 w-6 overflow-hidden rounded-sm bg-foreground/20">
<span className="bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-sm">
{Flag && <Flag title={countryName} />}
</span>
);
Expand Down

0 comments on commit 5af404e

Please sign in to comment.