From 8d4a519e4a9a3607b9c4239b08fb3494c99cbe48 Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 27 Feb 2022 22:56:02 +0800 Subject: [PATCH] feat(client): improve system settings module --- .../collection-manager/hooks/useCollectionField.ts | 1 - .../src/route-switch/antd/admin-layout/index.tsx | 12 +++++++++++- .../schema-component/antd/filter/Filter.Action.tsx | 1 - .../src/system-settings/SystemSettingsProvider.tsx | 2 +- .../src/system-settings/SystemSettingsShortcut.tsx | 11 +++++++++-- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/client/src/collection-manager/hooks/useCollectionField.ts b/packages/client/src/collection-manager/hooks/useCollectionField.ts index 4d7c51f4d..10771ee27 100644 --- a/packages/client/src/collection-manager/hooks/useCollectionField.ts +++ b/packages/client/src/collection-manager/hooks/useCollectionField.ts @@ -16,7 +16,6 @@ export const useCollectionField = () => { } const resourceName = `${ctx?.collectionName || collection?.name}.${ctx.name}`; const resource = api?.resource(resourceName, record[ctx.sourceKey]); - debugger; return { ...ctx, uiSchema: compile(ctx.uiSchema), diff --git a/packages/client/src/route-switch/antd/admin-layout/index.tsx b/packages/client/src/route-switch/antd/admin-layout/index.tsx index 6cbd67af7..3e1761f5d 100644 --- a/packages/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/client/src/route-switch/antd/admin-layout/index.tsx @@ -1,3 +1,4 @@ +import { css } from '@emotion/css'; import { Layout } from 'antd'; import React, { useRef, useState } from 'react'; import { useHistory, useRouteMatch } from 'react-router-dom'; @@ -34,7 +35,16 @@ const InternalAdminLayout = (props: any) => {
-
{result?.data?.data?.title}
+
+ + {/* {result?.data?.data?.title} */} +