redux: got rid of dialogs

This commit is contained in:
muerwre 2018-11-26 18:10:05 +07:00
parent 2f4029bbd8
commit 53e8205643
8 changed files with 61 additions and 282 deletions

View file

@ -29,11 +29,12 @@ import {
type Props = {
mode: String,
activeSticker: String,
windth: Number,
}
export const Component = (props: Props) => {
const {
mode, activeSticker,
mode, activeSticker, width
} = props;
const showDialog = (
@ -47,7 +48,7 @@ export const Component = (props: Props) => {
return (
showDialog &&
<div id="control-dialog">
<div id="control-dialog" style={{ width }}>
{ mode === MODES.ROUTER && <RouterDialog {...props} /> }
{ mode === MODES.STICKERS && <StickersDialog {...props} /> }
{ mode === MODES.TRASH && <TrashDialog {...props} /> }