Skip to content

Commit cc66304

Browse files
authored
fixed: no children prop (types) (TheWidlarzGroup#258)
With React 18 the implicit children prop was removed. You can read why here: https://solverfox.dev/writing/no-implicit-children/
1 parent 1893815 commit cc66304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export type UseNotification<V extends VariantsMap = Variants> = () => Emmiter<V>
5757

5858
export type CreateNotificationsReturnType<V extends VariantsMap = Variants> = {
5959
useNotifications: UseNotification<V>
60-
NotificationsProvider: React.FC
61-
ModalNotificationsProvider: React.FC<{ notificationTopPosition?: number }>
60+
NotificationsProvider: React.FC<React.PropsWithChildren>
61+
ModalNotificationsProvider: React.FC<React.PropsWithChildren<{ notificationTopPosition?: number }>>
6262
CustomVariantsTypeHelper: V
6363
} & ReturnType<UseNotification<V>>
6464

0 commit comments

Comments
 (0)