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 1812775 commit 78fa312Copy full SHA for 78fa312
src/components/Fields/EnumValues.tsx
@@ -15,7 +15,9 @@ export class EnumValues extends React.PureComponent<EnumValuesProps> {
15
16
return (
17
<div>
18
- <FieldLabel>{type === 'array' ? 'Items' : ''} Enum:</FieldLabel>
+ <FieldLabel>
19
+ {type === 'array' ? 'Items' : ''} {values.length === 1 ? 'Value' : 'Enum'}:
20
+ </FieldLabel>
21
{values.map((value, idx) => (
22
<ExampleValue key={idx}>{JSON.stringify(value)} </ExampleValue>
23
))}
0 commit comments