Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

CountryDropdown.js 721B

1234567891011121314151617181920212223242526272829303132333435
  1. // @flow
  2. import React from 'react';
  3. import { countries } from '../../utils';
  4. import CountryRow from './CountryRow';
  5. type Props = {
  6. /**
  7. * Click handler for a single entry.
  8. */
  9. onEntryClick: Function,
  10. };
  11. /**
  12. * This component displays the dropdown for the country picker.
  13. *
  14. * @returns {ReactElement}
  15. */
  16. function CountryDropdown({ onEntryClick }: Props) {
  17. return (
  18. <div className = 'cpick-dropdown'>
  19. {countries.map(country => (
  20. <CountryRow
  21. country = { country }
  22. key = { `${country.code}` }
  23. onEntryClick = { onEntryClick } />
  24. ))}
  25. </div>
  26. );
  27. }
  28. export default CountryDropdown;