From 3e30699581cf54a154e83149e996c56d60b93112 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 30 Sep 2022 13:03:55 +0800 Subject: [PATCH] fix: hello sample --- packages/samples/hello/src/client/index.tsx | 28 ++++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/samples/hello/src/client/index.tsx b/packages/samples/hello/src/client/index.tsx index aa2b45d592..7df392ca6e 100644 --- a/packages/samples/hello/src/client/index.tsx +++ b/packages/samples/hello/src/client/index.tsx @@ -1,5 +1,10 @@ import { TableOutlined } from '@ant-design/icons'; -import { SchemaComponentOptions, SchemaInitializer, SchemaInitializerContext } from '@nocobase/client'; +import { + SchemaComponentOptions, + SchemaInitializer, + SchemaInitializerContext, SettingsCenterProvider +} from '@nocobase/client'; +import { Card } from 'antd'; import React, { useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { HelloDesigner } from './HelloDesigner'; @@ -40,8 +45,23 @@ export default React.memo((props) => { component: 'HelloBlockInitializer', }); return ( - - {props.children} - + Hello Settings, + }, + }, + }, + }} + > + + {props.children} + + ); });