From 3457dfcba63bbb3b2c1fc39b8a2fd77a52bbabcd Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 25 Jun 2023 08:32:00 +0000 Subject: [PATCH] style: format code with prettier and standardjs Format code with prettier and standardjs This commit fixes the style issues introduced in 85472dc according to the output from Prettier and StandardJS. Details: https://app.deepsource.com/gh/wkylin/pro-react-admin/transform/4f9939ed-608c-4565-96c1-7fa0f138e22a/ --- src/pages/layout/proContent/index.jsx | 12 ++--- src/pages/layout/proTabs/index.jsx | 74 ++++++++++++++------------- 2 files changed, 45 insertions(+), 41 deletions(-) diff --git a/src/pages/layout/proContent/index.jsx b/src/pages/layout/proContent/index.jsx index 5a2b0301..798aef8c 100644 --- a/src/pages/layout/proContent/index.jsx +++ b/src/pages/layout/proContent/index.jsx @@ -18,13 +18,13 @@ const ProContent = () => { content: null, key: '', closable: false, - path: '', + path: '' }) const pathRef = useRef('') const { pathname, search } = useLocation() const { - token: { colorBgContainer, colorBgLayout }, + token: { colorBgContainer, colorBgLayout } } = theme.useToken() useEffect(() => { const { tabKey, title, element } = getKeyName(pathname) @@ -36,7 +36,7 @@ const ProContent = () => { content: element, key: tabKey, closable: tabKey !== '/', - path: newPath, + path: newPath }) setTabActiveKey(tabKey) // eslint-disable-next-line react-hooks/exhaustive-deps @@ -44,13 +44,13 @@ const ProContent = () => { return ( -
+
- + -