diff --git a/src/components/trash/TrashHelper.jsx b/src/components/trash/TrashHelper.jsx
new file mode 100644
index 0000000..0d3592d
--- /dev/null
+++ b/src/components/trash/TrashHelper.jsx
@@ -0,0 +1,48 @@
+import React from 'react';
+
+import { MODES } from '$constants/modes';
+
+export class TrashHelper extends React.Component {
+ clearPoly = () => {
+ this.props.editor.poly.clearAll();
+ this.props.editor.changeMode(MODES.NONE);
+ };
+
+ clearStickers = () => {
+ this.props.editor.stickers.clearAll();
+ this.props.editor.changeMode(MODES.NONE);
+ };
+
+ clearAll = () => {
+ this.props.editor.clearAll();
+ };
+
+ cancel = () => {
+ this.props.editor.changeMode(MODES.NONE);
+ };
+
+ render() {
+ return (
+
+
+
Уверены?
+
Мы все удалим
+
+
+
+ Стикеры
+
+
+ Маршрут
+
+
+ Очистить
+
+
+ Отмена
+
+
+
+ );
+ }
+}
diff --git a/src/styles/button.less b/src/styles/button.less
index eb4153a..86883f8 100644
--- a/src/styles/button.less
+++ b/src/styles/button.less
@@ -10,6 +10,7 @@
align-items: center;
cursor: pointer;
user-select: none;
+ box-shadow: inset rgba(100,100,100, 0.3) 1px 0, inset rgba(0,0,0, 0.1) -1px 0;
&.primary {
background: #3c78db;
diff --git a/src/styles/panel.less b/src/styles/panel.less
index 10ae681..2230bde 100644
--- a/src/styles/panel.less
+++ b/src/styles/panel.less
@@ -113,3 +113,21 @@
padding-bottom: 48px;
box-shadow: inset rgba(255, 255, 255, 0.05) 1px 1px;
}
+
+.helper {
+ width: 500px;
+ padding: 10px;
+ font-weight: 200;
+ font-size: 14px;
+ display: flex;
+}
+
+
+.helper__text {
+ width: 100%;
+}
+
+.helper__buttons {
+ display: flex;
+ align-items: center;
+}
diff --git a/src/styles/router.less b/src/styles/router.less
index 41ff47e..db82cdc 100644
--- a/src/styles/router.less
+++ b/src/styles/router.less
@@ -19,18 +19,4 @@
}
.router-helper {
- width: 500px;
- padding: 10px;
- font-weight: 200;
- font-size: 14px;
- display: flex;
-}
-
-.router-helper__text {
- width: 100%;
-}
-
-.router-helper__buttons {
- display: flex;
- align-items: center;
}
diff --git a/src/styles/stickers.less b/src/styles/stickers.less
index 5b11554..457adbf 100644
--- a/src/styles/stickers.less
+++ b/src/styles/stickers.less
@@ -101,8 +101,6 @@
}
.stickers-helper {
- width: 500px;
- padding: 10px;
}
.sticker-preview {