mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
fix: props for CreateFormBlockInitializers
This commit is contained in:
parent
42438625d5
commit
d2d8bb6e18
@ -5,11 +5,14 @@ import { gridRowColWrap } from '../utils';
|
||||
|
||||
export const CreateFormBlockInitializers = (props: any) => {
|
||||
const { t } = useTranslation();
|
||||
const { insertPosition, component } = props;
|
||||
return (
|
||||
<SchemaInitializer.Button
|
||||
wrap={gridRowColWrap}
|
||||
title={t('Add block')}
|
||||
title={component ? null : t('Add block')}
|
||||
icon={'PlusOutlined'}
|
||||
insertPosition={insertPosition}
|
||||
component={component}
|
||||
items={[
|
||||
{
|
||||
type: 'itemGroup',
|
||||
|
Loading…
Reference in New Issue
Block a user