This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const countries = [ | |
{country: 'Australia', code: 'AU'}, | |
{country: 'Austria', code: 'AT'}, | |
{country: 'Belgium', code: 'BE'}, | |
{country: 'Bulgaria', code: 'BG'}, | |
{country: 'Brazil ', code: 'BR'}, | |
{country: 'Canada', code: 'CA'}, | |
{country: 'Czech Republic ', code: 'CZ'}, | |
{country: 'Cyprus', code: 'CY'}, | |
{country: 'Denmark', code: 'DK'}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from 'react'; | |
import PropTypes from 'prop-types'; | |
import styles from './Dropdown.module.scss'; | |
export const Dropdown = ({ | |
onClick = () => {}, | |
label, | |
data, | |
title, | |
multiple, |