From 87ce6523d600ea7ce89b3fa932b5aa66c6f617d3 Mon Sep 17 00:00:00 2001 From: asvarcas Date: Tue, 14 Feb 2023 16:36:47 -0300 Subject: [PATCH] Fix CheckboxGroupInput translateChoice code example --- docs/CheckboxGroupInput.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/CheckboxGroupInput.md b/docs/CheckboxGroupInput.md index 4b983e1b86f..2b9b961e83e 100644 --- a/docs/CheckboxGroupInput.md +++ b/docs/CheckboxGroupInput.md @@ -234,10 +234,10 @@ The choices are translated by default, so you can use translation identifiers as ```jsx const choices = [ - { id: 'admin', label: 'myroot.roles.admin' }, - { id: 'u001', label: 'myroot.roles.u001' }, - { id: 'u002', label: 'myroot.roles.u002' }, - { id: 'u003', label: 'myroot.roles.u003' }, + { id: 'admin', name: 'myroot.roles.admin' }, + { id: 'u001', name: 'myroot.roles.u001' }, + { id: 'u002', name: 'myroot.roles.u002' }, + { id: 'u003', name: 'myroot.roles.u003' }, ]; ```