diff --git a/src/components/App.jsx b/src/components/App.jsx
index 9463229..839129d 100644
--- a/src/components/App.jsx
+++ b/src/components/App.jsx
@@ -393,8 +393,7 @@ export default class App extends React.Component {
}
onUndo = () => {
- let activeStyle;
- activeStyle = this.revisionStore.undo()
+ const activeStyle = this.revisionStore.undo()
const messages = undoMessages(this.state.mapStyle, activeStyle)
this.onStyleChanged(activeStyle, {addRevision: false});
diff --git a/src/components/fields/_FunctionButtons.jsx b/src/components/fields/_FunctionButtons.jsx
index 674f55e..e96b135 100644
--- a/src/components/fields/_FunctionButtons.jsx
+++ b/src/components/fields/_FunctionButtons.jsx
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
import Button from '../Button'
import {MdFunctions, MdInsertChart} from 'react-icons/md'
+import {mdiFunctionVariant} from '@mdi/js';
/**
@@ -41,7 +42,7 @@ export default class FunctionButtons extends React.Component {
onClick={this.props.onExpressionClick}
>
);
diff --git a/src/components/filter/FilterEditor.jsx b/src/components/filter/FilterEditor.jsx
index 01a0d8c..e11125b 100644
--- a/src/components/filter/FilterEditor.jsx
+++ b/src/components/filter/FilterEditor.jsx
@@ -11,6 +11,7 @@ import FilterEditorBlock from './FilterEditorBlock'
import Button from '../Button'
import SpecDoc from '../inputs/SpecDoc'
import ExpressionProperty from '../fields/_ExpressionProperty';
+import {mdiFunctionVariant} from '@mdi/js';
function combiningFilter (props) {
@@ -194,7 +195,7 @@ export default class CombiningFilterEditor extends React.Component {
onClick={this.makeExpression}
>
Upgrade to expression
@@ -212,7 +213,7 @@ export default class CombiningFilterEditor extends React.Component {
className="maputnik-make-zoom-function"
>
diff --git a/src/styles/_components.scss b/src/styles/_components.scss
index 375f55f..eedefb5 100644
--- a/src/styles/_components.scss
+++ b/src/styles/_components.scss
@@ -252,3 +252,51 @@
}
}
}
+
+.maputnik-inline-error {
+ color: #a4a4a4;
+ padding: 0.4em 0.4em;
+ font-size: 0.9em;
+ border: solid 1px $color-red;
+ border-radius: 2px;
+ margin: $margin-2 0px;
+}
+
+.maputnik-expression-editor {
+ border: solid 1px $color-gray;
+}
+
+.maputnik-input-block--wide {
+ .maputnik-input-block-content {
+ display: block;
+ width: auto;
+ }
+
+ .maputnik-input-block-label {
+ width: 82%;
+ }
+
+ .maputnik-input-block-action {
+ text-align: right;
+ }
+}
+
+.maputnik-expr-infobox {
+ font-size: $font-size-6;
+ background: $color-midgray;
+ padding: $margin-2;
+ border-radius: 2px;
+ border-top-right-radius: 0px;
+ border-top-left-radius: 0px;
+ color: $color-white;
+}
+
+.maputnik-expr-infobox__button {
+ background: none;
+ border: none;
+ padding: 0;
+ text-decoration: underline;
+ color: currentColor;
+ cursor: pointer;
+}
+
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 2f027e1..11cca10 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -35,49 +35,3 @@
height: 14px;
}
-// TODO: Move these into correct *.scss files
-.maputnik-inline-error {
- color: #a4a4a4;
- padding: 0.4em 0.4em;
- font-size: 0.9em;
- border: solid 1px $color-red;
- border-radius: 2px;
- margin: $margin-2 0px;
-}
-
-.maputnik-expression-editor {
- border: solid 1px $color-gray;
-}
-
-.maputnik-input-block--wide {
- .maputnik-input-block-content {
- display: block;
- width: auto;
- }
-
- .maputnik-input-block-label {
- width: 82%;
- }
-
- .maputnik-input-block-action {
- text-align: right;
- }
-}
-
-.maputnik-expr-infobox {
- font-size: $font-size-6;
- background: $color-midgray;
- padding: $margin-2;
- border-radius: 2px;
- border-top-right-radius: 0px;
- border-top-left-radius: 0px;
- color: $color-white;
-}
-.maputnik-expr-infobox__button {
- background: none;
- border: none;
- padding: 0;
- text-decoration: underline;
- color: currentColor;
- cursor: pointer;
-}