Skip to content

Instantly share code, notes, and snippets.

View heorhii1's full-sized avatar
🏠
Working from home

heorhii1

🏠
Working from home
View GitHub Profile
@heorhii1
heorhii1 / stripe_country_codes.js
Created June 10, 2020 12:04
Stripe countries with codes (2020)
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'},
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,