Skip to content

Commit c744dc7

Browse files
Add children to CookieConsentProviderProps (#7)
* Add children to CookieConsentProviderProps * Use PropsWithChildren instead
1 parent 17cf63b commit c744dc7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ export interface CookieConsentProviderProps {
3030
useCookieConsentHooksOptions?: CookieConsentOptions;
3131
}
3232

33-
export const CookieConsentProvider: FC<CookieConsentProviderProps> = ({
34-
useCookieConsentHooksOptions,
35-
children,
36-
}) => {
33+
export const CookieConsentProvider: FC<
34+
React.PropsWithChildren<CookieConsentProviderProps>
35+
> = ({ useCookieConsentHooksOptions, children }) => {
3736
CookieConsentContext.Consumer;
3837
const {
3938
consent,

0 commit comments

Comments
 (0)