sanity-io / orderable-document-list

Drag-and-drop Document Ordering without leaving the Editing surface
MIT License
75 stars 22 forks source link

Create Intent button not showing up #88

Open perrydrums opened 8 months ago

perrydrums commented 8 months ago

The create new document button is not showing up. I tried setting createIntent: true and also tried adding custom menu items, but those are not showing up either.

Snippet of the structure:

return S.listItem()
    .title("Content")
    .child(
      S.list()
        .title("Content")
        .items([
          S.listItem()
            .id("homePage")
            .title("Homepage")
            .icon(IoHomeOutline)
            .child(
              S.document()
                .schemaType("homePage")
                .documentId(`${site}-homePage`)
                .initialValueTemplate(`homePage-${defaultLanguage}`),
            ),
          orderableDocumentListDeskItem({
            type: "product",
            title: "Products",
            params: { site },
            filter: "site == $site",
            createIntent: true,
            icon: BsBoxSeam,
            S,
            context,
          }),