diff --git a/src/components/panels/EditorPanel.tsx b/src/components/panels/EditorPanel.tsx index b6e5d74..5b017ea 100644 --- a/src/components/panels/EditorPanel.tsx +++ b/src/components/panels/EditorPanel.tsx @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react'; +import React, { PureComponent, useState, useCallback } from 'react'; import { MODES } from '~/constants/modes'; import classnames from 'classnames'; @@ -23,9 +23,15 @@ const mapStateToProps = (state: IState) => { const { mode, changed, editing, features, history } = selectEditor(state); const { route, stickers } = selectMap(state); return { - mode, changed, editing, features, history, route, stickers, - } -} + mode, + changed, + editing, + features, + history, + route, + stickers, + }; +}; const mapDispatchToProps = { editorChangeMode, @@ -78,7 +84,8 @@ class EditorPanelUnconnected extends PureComponent { editing, features: { routing }, history: { records, position }, - route, stickers, + route, + stickers, } = this.props; const can_undo = records.length > 0 && position > 0; @@ -165,7 +172,7 @@ class EditorPanelUnconnected extends PureComponent { className={classnames({ primary: changed, inactive: !changed })} onClick={this.startSaveMode} > - СОХРАНИТЬ + СОХРАНИТЬ diff --git a/src/styles/stickers.less b/src/styles/stickers.less index 14fc0d1..ef3dace 100644 --- a/src/styles/stickers.less +++ b/src/styles/stickers.less @@ -55,7 +55,7 @@ } } - @media(hover: none) { + @media(hover: hover) { transition: none; } }