Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: decorators have another type #35

Closed
Realetive opened this issue May 7, 2020 · 4 comments
Closed

fix: decorators have another type #35

Realetive opened this issue May 7, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Realetive
Copy link

🐛 The bug
Hi! Many thanks for your lib.

Decorators in type: 'block' have another type: https://www.sanity.io/docs/customization#decorators-e6401a8fe843

I think, that it's look like Array<BlockStyle> instead Array<Field & { blockEditor?: BlockEditor }>

@Realetive Realetive added the bug Something isn't working label May 7, 2020
@danielroe
Copy link
Owner

@Realetive Thanks for catching this!

@Realetive
Copy link
Author

Please add name to BlockStyle yet. For example in this case:

annotations: [
  {
    title: 'URL',
    name: 'link',
    type: 'object',
    fields: [
      {
        title: 'URL',
        name: 'href',
        type: 'url'
      }
    ]
  }
]

@danielroe
Copy link
Owner

Any better? 😆

@Realetive
Copy link
Author

👌 Perfect! Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants