panels: fixed sizes

This commit is contained in:
muerwre 2018-12-07 14:37:44 +07:00
parent b8ba50517b
commit a6966fd651
4 changed files with 11 additions and 5 deletions

View file

@ -45,9 +45,7 @@ const DIALOG_CONTENTS = {
};
export const Component = (props: Props) => {
const {
mode
} = props;
const { mode } = props;
return (
(mode && DIALOG_CONTENTS[mode] && React.createElement(DIALOG_CONTENTS[mode], { ...props }))