Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from TylerBarnes/pass-props-through-to-link
Browse files Browse the repository at this point in the history
fix undefined fade function error
  • Loading branch information
TylerBarnes authored Nov 24, 2018
2 parents 244801a + 009408b commit 051e0b9
Show file tree
Hide file tree
Showing 2 changed files with 8 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": "gatsby-plugin-transition-link",
"version": "1.3.3",
"version": "1.3.4",
"description": "A link component for page transitions in gatsby.",
"repository": "https://github.com/TylerBarnes/gatsby-plugin-transition-link",
"homepage": "https://gatsby-plugin-transition-link.netlify.com/",
Expand Down
8 changes: 7 additions & 1 deletion src/AniLink/Fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ const fade = ({ exit: { length }, node, direction }) => {
);
};

export default function Fade({ exit, entry, fade, duration, ...props }) {
export default function Fade({
exit,
entry,
fade: removedProp,
duration,
...props
}) {
const length = duration || 0.4;

return (
Expand Down

0 comments on commit 051e0b9

Please sign in to comment.