ekwonye-richard / react-flags-select

Customizable svg flags select components for React Js
194 stars 121 forks source link

Default country not working #166

Open ericdjavid opened 2 years ago

ericdjavid commented 2 years ago

Hello,

When I try to use the default country attribute, I have this error message :

Type '{ defaultCountry: string; selected: string; onSelect: (code: string) => void; countries: string[]; customLabels: { US: string; FR: string; }; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  Property 'defaultCountry' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.

I think this attribute is deprecated but it is still present on the documentation on file v1.md