Skip to content

Commit 8662c88

Browse files
committed
Remove ReactChildren type for protected component children prop
1 parent 6946b2c commit 8662c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProtectedComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { WarrantCheck } from "@warrantdev/warrant-js";
33
import useWarrant from "./useWarrant";
44

55
export interface ProtectedComponentProps extends WarrantCheck {
6-
children: React.ReactNode | React.ReactChildren;
6+
children: React.ReactNode;
77
}
88

99
const ProtectedComponent: React.FunctionComponent<ProtectedComponentProps> = ({ op, warrants, children }) => {

0 commit comments

Comments
 (0)