From 836be13f11f3ce12f0d097b249173c1b25ff2d7a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:31:09 +0000 Subject: [PATCH] style: format code with Prettier and StandardJS This commit fixes the style issues introduced in 5872365 according to the output from Prettier and StandardJS. Details: None --- src/pages/layout/proContent/index.jsx | 14 ++--- src/pages/layout/proTabs/index.jsx | 74 ++++++++++++++------------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/src/pages/layout/proContent/index.jsx b/src/pages/layout/proContent/index.jsx index e9d4fe0e..1593a685 100644 --- a/src/pages/layout/proContent/index.jsx +++ b/src/pages/layout/proContent/index.jsx @@ -19,13 +19,13 @@ const ProContent = () => { key: '', closable: false, path: '', - i18nKey: '', + i18nKey: '' }) const pathRef = useRef('') const { pathname, search } = useLocation() const { - token: { colorBgContainer, colorBgLayout }, + token: { colorBgContainer, colorBgLayout } } = theme.useToken() useEffect(() => { const { tabKey, title, element, i18nKey } = getKeyName(pathname) @@ -38,21 +38,21 @@ const ProContent = () => { key: tabKey, closable: tabKey !== '/', path: newPath, - i18nKey, + i18nKey }) setTabActiveKey(tabKey) // eslint-disable-next-line react-hooks/exhaustive-deps }, [pathname, search, panes, activeKey]) return ( - -
+ +
- + -