From 124cca2e8f5ad0956da82bbd1362f1810a82782c Mon Sep 17 00:00:00 2001 From: juneszh Date: Mon, 19 Sep 2022 10:57:42 +0800 Subject: [PATCH] Change some jsx code format --- npm/src/components/Console.js | 4 +--- npm/src/components/Error.js | 8 +++++--- npm/src/components/Home.js | 10 ++++------ npm/src/components/Login.js | 13 ++++--------- npm/src/global.js | 6 +++--- 5 files changed, 17 insertions(+), 24 deletions(-) diff --git a/npm/src/components/Console.js b/npm/src/components/Console.js index cb63ac0..3b33916 100644 --- a/npm/src/components/Console.js +++ b/npm/src/components/Console.js @@ -132,9 +132,7 @@ const Console = props => { for (const [chartKey, chartValue] of Object.entries(global.config.chart)) { return ( - - {chartComponent(chartKey, chartValue.component, chartValue.config)} - + ); } diff --git a/npm/src/components/Error.js b/npm/src/components/Error.js index a4fbd54..6fa358c 100644 --- a/npm/src/components/Error.js +++ b/npm/src/components/Error.js @@ -19,9 +19,11 @@ const Error = props => { } }, 1000); return ( - + + children={localeValue(':login')} + /> - - {localeValue(':remember')} - + diff --git a/npm/src/global.js b/npm/src/global.js index 4050697..188a840 100644 --- a/npm/src/global.js +++ b/npm/src/global.js @@ -98,7 +98,7 @@ const ModelKit = forwardRef((props, ref) => { setIsModalDestroy(false); setIsModalOpen(true); }; - + const modalMessage = useCallback(event => { if (event.origin === window.location.origin) { if (event.data.error === 0) { @@ -123,7 +123,7 @@ const ModelKit = forwardRef((props, ref) => { { title='modalFrame' src={modalConfig.url} style={{ border: 'none', flex: '1 1 auto' }} - > + /> ); });