Skip to content

Commit

Permalink
Merge pull request #9 from warrant-dev/UpdateWarrantJsForContext
Browse files Browse the repository at this point in the history
Update warrant js for context
  • Loading branch information
stanleyphu authored Nov 23, 2022
2 parents f027cae + 8662c88 commit 8040d0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"react-router-dom": "^5.2.0"
},
"dependencies": {
"@warrantdev/warrant-js": "^1.0.0"
"@warrantdev/warrant-js": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion src/ProtectedComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { WarrantCheck } from "@warrantdev/warrant-js";
import useWarrant from "./useWarrant";

export interface ProtectedComponentProps extends WarrantCheck {
children: React.ReactChildren;
children: React.ReactNode;
}

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

0 comments on commit 8040d0a

Please sign in to comment.