Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
const [text, setText] = useState('');
const [country, setCountry] = useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
mapIsoToLabel={iso => iso2FlagEmoji(iso)}
/>
);
};
export default () => {
const [text, setText] = useState('');
const [country, setCountry] = useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
mapIsoToLabel={iso => iso2FlagEmoji(iso)}
/>
);
};
export default () => {
const [text, setText] = useState('');
const [country, setCountry] = useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
/>
);
};
export default () => {
const [text, setText] = useState('');
const [country, setCountry] = useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
overrides={{
Input: {
props: {
overrides: {
Root: {
style: {
export default () => {
const [text, setText] = useState('');
const [country, setCountry] = useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
/>
);
};
export default () => {
const [text, setText] = React.useState('');
const [country, setCountry] = React.useState(COUNTRIES.US);
return (
{
setText(event.currentTarget.value);
}}
onCountryChange={(event: any) => {
setCountry(event.option);
}}
overrides={{
FlagContainer: {
component: CustomFlag,
},
CountrySelect: {
props: {