WIP <Compose> Refactor; <ActionsModal>; dropdowns

This commit is contained in:
kibigo!
2017-12-29 16:32:13 -08:00
parent 083170bec7
commit b4a3792201
7 changed files with 534 additions and 479 deletions

View File

@@ -80,11 +80,16 @@ const handlers = {
}) => ({
...rest,
active: value && name === value,
name,
onClick (e) {
e.preventDefault(); // Prevents focus from changing
onModalClose();
onChange(name);
},
onPassiveClick (e) {
e.preventDefault(); // Prevents focus from changing
onChange(name);
},
})
),
});
@@ -191,7 +196,7 @@ export default class ComposerOptionsDropdown extends React.PureComponent {
>
{({ opacity, scaleX, scaleY }) => (
<div
className='dropdown'
className='composer--options--dropdown__dropdown'
ref={this.setRef}
style={{
opacity: opacity,