trycourier / courier-react

MIT License
40 stars 14 forks source link

fix(export PreferenceSections): integrate PreferenceSections #548

Closed paige12345 closed 8 months ago

paige12345 commented 8 months ago

Description

We need to integrate PreferencesV4 into our app, but we have defined several sections for all the preferences, and want to show the section separately. For example, we define two sections: Organizations and Projects, and want to show Organizations preferences in one page, and Projects preferences in another page. Now I can use

const preferences = usePreferences();
preferences.fetchPreferencePage(tenantId, false);

to retrieve all sections, then filter out required section. Now I want to use <PreferenceSections section={section} /> to integrate it into my app, so need to export PreferenceSections.

Type of change

Related issues

Fix [#1]()

netlify[bot] commented 8 months ago

Deploy request for stupefied-mclean-b58cde pending review.

Visit the deploys page to approve it

Name Link
Latest commit 19e20f7927e054efe65ed532f95b871f7d865c5d