diff --git a/components/BackgroundSelect.js b/components/BackgroundSelect.js index 63aeac6..d37a430 100644 --- a/components/BackgroundSelect.js +++ b/components/BackgroundSelect.js @@ -47,42 +47,39 @@ class BackgroundSelect extends React.Component { } render() { - let background = this.props.color - background = - typeof background === 'string' - ? background + const { color, mode, image, onChange, aspectRatio } = this.props + const { isVisible, mounted } = this.state + + let background = + typeof color === 'string' + ? color .replace(/&/g, '&') .replace(//g, '>') .replace(/"/g, '"') .replace(/'/g, ''') .replace(/\//g, '/') - : background + : color if (!validateColor(background)) { background = DEFAULT_BG_COLOR } - const { mode, image } = this.props - return (
-
-
- BG -
+
-