mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
dialogs: now in separated windows
This commit is contained in:
parent
65e549a5af
commit
789a38a1d0
5 changed files with 17 additions and 10 deletions
|
@ -16,7 +16,9 @@ const LEFT_DIALOGS = {
|
|||
};
|
||||
|
||||
export const LeftDialog = ({ dialog, dialog_active }: Props) => (
|
||||
<div className={classnames('dialog', { active: dialog_active })}>
|
||||
{ dialog && LEFT_DIALOGS[dialog] && React.createElement(LEFT_DIALOGS[dialog]) }
|
||||
</div>
|
||||
Object.keys(LEFT_DIALOGS).map(item => (
|
||||
<div className={classnames('dialog', { active: dialog_active && (dialog === item) })} key={item}>
|
||||
{ dialog && LEFT_DIALOGS[item] && React.createElement(LEFT_DIALOGS[item]) }
|
||||
</div>
|
||||
))
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue