We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e45376 commit 746de8eCopy full SHA for 746de8e
packages/ra-ui-materialui/src/input/SelectInput.stories.tsx
@@ -728,11 +728,6 @@ const CreateAuthor = () => {
728
};
729
730
export const InsideReferenceInputWithCreationSupport = () => {
731
- const optionRenderer = choice => {
732
- return choice.first_name && choice.last_name
733
- ? `${choice.first_name} ${choice.last_name}`
734
- : `${choice.name}`;
735
- };
736
return (
737
<TestMemoryRouter initialEntries={['/books/1']}>
738
<AdminContext
@@ -765,8 +760,6 @@ export const InsideReferenceInputWithCreationSupport = () => {
765
760
>
766
761
<SelectInput
767
762
create={<CreateAuthor />}
768
- createLabel="Create a new Author"
769
- optionText={optionRenderer}
770
763
/>
771
764
</ReferenceInput>
772
<FormInspector name="author" />
0 commit comments