|
|
@ -65,10 +65,10 @@ class BackgroundSelect extends React.PureComponent {
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="picker-tabs-contents">
|
|
|
|
<div className="picker-tabs-contents">
|
|
|
|
<div style={mode === 'color' ? {} : { display: 'none' }}>
|
|
|
|
<div hidden={mode !== 'color'}>
|
|
|
|
<ColorPicker color={color} onChange={this.handlePickColor} />
|
|
|
|
<ColorPicker color={color} onChange={this.handlePickColor} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style={mode === 'image' ? {} : { display: 'none' }}>
|
|
|
|
<div hidden={mode !== 'image'}>
|
|
|
|
<ImagePicker onChange={onChange} imageDataURL={image} aspectRatio={aspectRatio} />
|
|
|
|
<ImagePicker onChange={onChange} imageDataURL={image} aspectRatio={aspectRatio} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|