dialogs: now in separated windows

This commit is contained in:
muerwre 2018-12-07 17:47:00 +07:00
parent 65e549a5af
commit 789a38a1d0
5 changed files with 17 additions and 10 deletions

View file

@ -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>
))
);