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
2023-09-26 20:26:09 +03:00
committed by GitHub
parent dee3419fe8
commit 987dd8f568
15 changed files with 285 additions and 86 deletions
+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}
/>
),
})