Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import currencies from 'currency-formatter/currencies';
import escapeStringRegexp from 'escape-string-regexp';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'grommet/components/Button';
import Footer from 'grommet/components/Footer';
import Form from 'grommet/components/Form';
import FormField from 'grommet/components/FormField';
import FormFields from 'grommet/components/FormFields';
import Header from 'grommet/components/Header';
import Heading from 'grommet/components/Heading';
import NumberInput from 'grommet/components/NumberInput';
import Select from 'grommet/components/Select';
import TextInput from 'grommet/components/TextInput';
const currencyList = currencies.map(currency => ({
value: currency.code,
label: `${currency.code} (${currency.symbol})`,
}));
class WalletAdd extends Component {
static propTypes = {
onAdd: PropTypes.func,
}
static defaultProps = {
onAdd: () => {},
}
constructor(props) {
super(props);