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

Filter/Sort component question

Open mmo0428 opened this issue 2 years ago • 0 comments
trafficstars

Sorry, I am new to react-notion-x. Neither the sample page nor (https://transitivebullsh.it/) seem to have a filter/sort component on top of the database view for the visitor to filter or sort the data (not sure if I'm overlooking it). If react-notion-x doesn't provide this component by default, and if I want to do it myself, should I:

  1. create a new file in the component folder (e.g. NotionCollectionControls.tsx) to handle the filtering/sorting logic
  2. in component/NotionPage.tsx, add this NotionCollectionControls component on top of the NotionRenderer, and pass filter and sort props to NotionRenderer?

mmo0428 avatar Mar 10 '23 06:03 mmo0428