Skip to content

Commit

Permalink
Fixed missing rest props
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Aug 29, 2019
1 parent 104ae29 commit 134ae1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-external-link",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"repository": {
Expand All @@ -12,7 +12,14 @@
"email": "[email protected]",
"url": "https://www.alejandrocelaya.com"
},
"keywords": ["react", "link", "external", "target", "noopener", "noreferrer"],
"keywords": [
"react",
"link",
"external",
"target",
"noopener",
"noreferrer"
],
"license": "MIT",
"types": "dist/index.d.ts",
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/ExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { FunctionComponent, ReactNode } from 'react';
export interface ExternalLinkProps {
href: string;
children?: ReactNode;
[rest: string]: any;
}

const ExternalLink: FunctionComponent<ExternalLinkProps> = ({ href, children, ...rest }: ExternalLinkProps) => (
Expand Down

0 comments on commit 134ae1f

Please sign in to comment.