react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

fix: 🐛 add missing property cover

Open futantan opened this issue 3 years ago • 1 comments
trafficstars

Description

Notion Test Page ID

futantan avatar Sep 08 '22 15:09 futantan

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-notion-x ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 3:32PM (UTC)
react-notion-x-minimal-demo ✅ Ready (Inspect) Visit Preview Sep 8, 2022 at 3:32PM (UTC)

vercel[bot] avatar Sep 08 '22 15:09 vercel[bot]

@futantan, thanks for this. Could you add a test page id where you are seeing an issue with this? Where are you needing the cover type?

normdoow avatar Oct 03 '22 11:10 normdoow

@normdoow For every pages which is a database, the cover property is the cover image url.

futantan avatar Oct 10 '22 14:10 futantan

Not needed. The data is already there from notion’s api

On Tue, Oct 11, 2022 at 00:01 Noah Bragg @.***> wrote:

@.**** commented on this pull request.

In packages/notion-types/src/collection.ts https://github.com/NotionX/react-notion-x/pull/368#discussion_r991445244 :

@@ -39,6 +39,7 @@ export interface Collection { copied_from: string template_pages?: Array<ID>

  • cover?: string;

Looks like you are just adding the cover type. More work probably needs to be done to add this in code.

— Reply to this email directly, view it on GitHub https://github.com/NotionX/react-notion-x/pull/368#pullrequestreview-1136252815, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP2MGJ5DUS6OA2HMB2RM6DWCQ4W5ANCNFSM6AAAAAAQH33DSQ . You are receiving this because you were mentioned.Message ID: @.***>

futantan avatar Oct 10 '22 16:10 futantan