use CompanyDropdown component in registration form (#4548)

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-01-30 19:47:10 -06:00 committed by GitHub
parent 1d780058c8
commit febe029ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -7,9 +7,11 @@ import { Images } from 'images/Images';
import './CountryDropdown.css';
import { CountryLabel } from 'types';
const CountryDropdown = ({ onChange }) => {
const CountryDropdown = ({ input: { onChange } }) => {
const [state, setState] = useState('');
useEffect(() => onChange(state), [state]);
return (
<FormControl variant='outlined' className='CountryDropdown'>
<InputLabel id='CountryDropdown-select'>Country</InputLabel>