Skip to content

Commit

Permalink
[design-studio] Add suffix to allInputs fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 5d590fd commit 420892a
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions packages/design-studio/schemas/allInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const title = {

// example fields

const arrayOfObjects = {
const arrayOfObjectsExample = {
type: 'array',
name: 'arrayOfObjects',
name: 'arrayOfObjectsExample',
title: 'Array of objects',
of: [
{
Expand All @@ -22,9 +22,9 @@ const arrayOfObjects = {
}
}

const arrayOfReferences = {
const arrayOfReferencesExample = {
type: 'array',
name: 'arrayOfReferences',
name: 'arrayOfReferencesExample',
title: 'Array of references',
of: [
{
Expand All @@ -34,16 +34,16 @@ const arrayOfReferences = {
]
}

const arrayOfPrimitives = {
const arrayOfPrimitivesExample = {
type: 'array',
name: 'arrayOfPrimitives',
name: 'arrayOfPrimitivesExample',
title: 'Array of primitives',
of: [{type: 'string'}]
}

const arrayOfGeopoints = {
const arrayOfGeopointsExample = {
type: 'array',
name: 'arrayOfGeopoints',
name: 'arrayOfGeopointsExample',
title: 'Array of geopoints',
of: [{type: 'geopoint'}]
}
Expand All @@ -54,9 +54,9 @@ const booleanExample = {
title: 'Boolean example'
}

const arrayGridOfFlatImages = {
const arrayGridOfFlatImagesExample = {
type: 'array',
name: 'arrayGridOfFlatImages',
name: 'arrayGridOfFlatImagesExample',
title: 'Array grid of (flat) images with caption',
of: [
{
Expand All @@ -67,9 +67,9 @@ const arrayGridOfFlatImages = {
options: {layout: 'grid'}
}

const arrayGridOfImages = {
const arrayGridOfImagesExample = {
type: 'array',
name: 'arrayGridOfImages',
name: 'arrayGridOfImagesExample',
title: 'Array grid of images',
of: [
{
Expand Down Expand Up @@ -165,14 +165,14 @@ const numberRadioExample = {
}
}

const object = {
const objectExample = {
type: 'object',
name: 'object',
name: 'objectExample',
title: 'Object',
fields: [{type: 'string', name: 'title', title: 'Title'}]
}

const objectWithNestedValues = {
const objectWithNestedValuesExample = {
type: 'object',
name: 'objectWithNestedValues',
title: 'Object with nested values',
Expand All @@ -191,9 +191,9 @@ const objectWithNestedValues = {
]
}

const portableText = {
const portableTextExample = {
type: 'array',
name: 'portableText',
name: 'portableTextExample',
title: 'Portable text',
of: [{type: 'block'}]
}
Expand Down Expand Up @@ -269,12 +269,12 @@ export default {
title,

// array
arrayOfObjects,
arrayOfReferences,
arrayOfPrimitives,
arrayGridOfImages,
arrayGridOfFlatImages,
arrayOfGeopoints,
arrayOfObjectsExample,
arrayOfReferencesExample,
arrayOfPrimitivesExample,
arrayGridOfImagesExample,
arrayGridOfFlatImagesExample,
arrayOfGeopointsExample,

// boolean
booleanExample,
Expand All @@ -301,11 +301,11 @@ export default {
numberRadioExample,

// object
object,
objectWithNestedValues,
objectExample,
objectWithNestedValuesExample,

// portableText
portableText,
portableTextExample,

// reference
referenceExample,
Expand Down

0 comments on commit 420892a

Please sign in to comment.