docs: expanded rating form + UI docs improvement (#5211)

* docs: expanded rating form + UI docs improvement

* added props table + changed example
This commit is contained in:
Shahed Nasser authored and GitHub committed 2023-09-26 20:26:09 +03:00
1 parent dee3419fe8
commit 987dd8f568
15 files changed
+285 -86

No files matched your search

+5 -2
View File
@@ -22,9 +22,12 @@ const useOnboarding = () => {
children: (
<Rating
event="rating_onboarding"
onRating={() => {
setTimeout(() => removeNotification(id), 1500)
onRating={(rating?: number) => {
if (rating >= 4) {
setTimeout(() => removeNotification(id), 1500)
}
}}
parentNotificationId={id}
/>
),
})