Skip to content

Commit 95459cc

Browse files
- Fixed the name of the LAYOUT_GRID_UI_OPTION in the source and tests
1 parent 090402b commit 95459cc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/core/src/components/fields/LayoutGridField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export interface LayoutGridFieldProps<T = any, S extends StrictRJSFSchema = RJSF
9090

9191
/** The constant representing the main layout grid schema option name in the `uiSchema`
9292
*/
93-
export const LAYOUT_GRID_UI_OPTION = 'LayoutGridField';
93+
export const LAYOUT_GRID_UI_OPTION = 'layoutGrid';
9494

9595
/** The constant representing the main layout grid schema option name in the `uiSchema`
9696
*/

packages/core/test/LayoutGridField.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const readonlySchema: RJSFSchema = {
8383
};
8484
const readonlyUISchema: UiSchema = {
8585
'ui:field': 'LayoutGridField',
86-
'ui:layout_grid': {
86+
'ui:layoutGrid': {
8787
'ui:row': {
8888
children: [
8989
{
@@ -373,7 +373,7 @@ const gridFormSchema = {
373373

374374
const gridFormUISchema: UiSchema = {
375375
'ui:field': 'LayoutGridForm',
376-
'ui:layout_grid': {
376+
'ui:layoutGrid': {
377377
'ui:row': [
378378
{
379379
'ui:row': {
@@ -432,7 +432,7 @@ const gridFormUISchema: UiSchema = {
432432
},
433433
address: {
434434
'ui:field': 'LayoutGridField',
435-
'ui:layout_grid': {
435+
'ui:layoutGrid': {
436436
'ui:row': {
437437
children: [
438438
{
@@ -463,7 +463,7 @@ const gridFormUISchema: UiSchema = {
463463
},
464464
employment: {
465465
'ui:field': 'LayoutGridField',
466-
'ui:layout_grid': {
466+
'ui:layoutGrid': {
467467
'ui:row': {
468468
children: [
469469
{

0 commit comments

Comments
 (0)