From a8a76766f4cf13b9fcce31d982f3ac68a817a47e Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Thu, 16 Jan 2025 15:36:45 +0300 Subject: [PATCH] =?UTF-8?q?WEB=20APP:=20P8PFullScreenDialog=20-=20=D0=B2?= =?UTF-8?q?=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87=D0=B8=20=D1=81=D0=B2?= =?UTF-8?q?=D0=BE=D0=B9=D1=81=D1=82=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5?= =?UTF-8?q?=D0=B9=D0=BD=D0=B5=D1=80=D1=83=20=D1=81=D0=BE=D0=B4=D0=B5=D1=80?= =?UTF-8?q?=D0=B6=D0=B8=D0=BC=D0=BE=D0=B3=D0=BE=20=D0=B4=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B0=20(contentProps)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/p8p_fullscreen_dialog.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/components/p8p_fullscreen_dialog.js b/app/components/p8p_fullscreen_dialog.js index c51a4ff..b37fd3a 100644 --- a/app/components/p8p_fullscreen_dialog.js +++ b/app/components/p8p_fullscreen_dialog.js @@ -27,7 +27,7 @@ const STYLES = { //----------- //Полноэкранный диалог -const P8PFullScreenDialog = ({ title, onClose, children }) => { +const P8PFullScreenDialog = ({ title, onClose, contentProps, children }) => { const handleClose = () => { onClose ? onClose() : null; }; @@ -46,7 +46,7 @@ const P8PFullScreenDialog = ({ title, onClose, children }) => { - {children} + {children} ); }; @@ -55,7 +55,8 @@ const P8PFullScreenDialog = ({ title, onClose, children }) => { P8PFullScreenDialog.propTypes = { title: PropTypes.string.isRequired, onClose: PropTypes.func, - children: PropTypes.element + children: PropTypes.element, + contentProps: PropTypes.object }; //----------------