mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
redux: got rid of dialogs
This commit is contained in:
parent
2f4029bbd8
commit
53e8205643
8 changed files with 61 additions and 282 deletions
|
@ -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} /> }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue