diff --git a/src/components/dialogs/StickersDialog.tsx b/src/components/dialogs/StickersDialog.tsx index be9dede..37847f4 100644 --- a/src/components/dialogs/StickersDialog.tsx +++ b/src/components/dialogs/StickersDialog.tsx @@ -15,7 +15,7 @@ type Props = ReturnType & }; const StickersDialogUnconnected = ({ editorSetActiveSticker, width }: Props) => ( -
+
{Object.keys(STICKERS).map(set => (
diff --git a/src/components/panels/EditorPanel.tsx b/src/components/panels/EditorPanel.tsx index 6d770e7..86247c8 100644 --- a/src/components/panels/EditorPanel.tsx +++ b/src/components/panels/EditorPanel.tsx @@ -11,6 +11,8 @@ import { editorStopEditing, editorTakeAShot, editorKeyPressed, + editorUndo, + editorRedo, } from '~/redux/editor/actions'; import { Tooltip } from '~/components/panels/Tooltip'; import { IState } from '~/redux/store'; @@ -18,7 +20,7 @@ import { selectEditor } from '~/redux/editor/selectors'; import pick from 'ramda/es/pick'; const mapStateToProps = (state: IState) => - pick(['mode', 'changed', 'editing', 'features'], selectEditor(state)); + pick(['mode', 'changed', 'editing', 'features', 'history'], selectEditor(state)); const mapDispatchToProps = { editorChangeMode, @@ -26,6 +28,8 @@ const mapDispatchToProps = { editorStopEditing, editorTakeAShot, editorKeyPressed, + editorUndo, + editorRedo, }; type Props = ReturnType & typeof mapDispatchToProps & {}; @@ -68,6 +72,7 @@ class EditorPanelUnconnected extends PureComponent { changed, editing, features: { routing }, + history: { records, position }, } = this.props; return ( @@ -78,6 +83,26 @@ class EditorPanelUnconnected extends PureComponent { this.panel = el; }} > +
+ + + +
+
{routing && (