Skip to content

Commit

Permalink
fix: allow null for breadcrumb type (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Schrader <jschrader@newrelic.com>
  • Loading branch information
icd2k3 and jschrader-nr authored Nov 5, 2020
1 parent 0f5ac7d commit 87099d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "use-react-router-breadcrumbs",
"version": "1.0.4",
"version": "1.0.5",
"description": "A hook for displaying and setting breadcrumbs for react router",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface MatchOptions {

export interface BreadcrumbsRoute {
path: string;
breadcrumb?: React.ComponentType | React.ElementType | string;
breadcrumb?: React.ComponentType | React.ElementType | string | null;
matchOptions?: MatchOptions;
routes?: BreadcrumbsRoute[];
}
Expand Down

0 comments on commit 87099d9

Please sign in to comment.