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:
@@ -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}
|
||||
/>
|
||||
),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user