Last active
September 2, 2019 02:10
-
-
Save ryanpedersen42/41e721d8c3119c578ea436719ec95767 to your computer and use it in GitHub Desktop.
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
// src/components/dropdown-selector/dropdown-selector.jsx | |
import React from 'react'; | |
import './dropdown-selector.styles.scss'; | |
const DropdownSelector = ({ spaceOptions, selectedSpace, changeSelectedSpace }) => ( | |
<div> | |
<p className='instructions'>Pick your 3box Space</p> | |
<select className='drop-down' defaultValue={selectedSpace} onChange={event => changeSelectedSpace(event)}> | |
{spaceOptions.map((option) => { | |
return ( | |
<option key={option} value={option}>{option}</option> | |
) | |
})} | |
</select> | |
</div> | |
); | |
export default DropdownSelector; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment