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

Commit 051e0b9

Browse files
authored
Merge pull request #18 from TylerBarnes/pass-props-through-to-link
fix undefined fade function error
2 parents 244801a + 009408b commit 051e0b9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gatsby-plugin-transition-link",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"description": "A link component for page transitions in gatsby.",
55
"repository": "https://github.com/TylerBarnes/gatsby-plugin-transition-link",
66
"homepage": "https://gatsby-plugin-transition-link.netlify.com/",

src/AniLink/Fade.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ const fade = ({ exit: { length }, node, direction }) => {
1414
);
1515
};
1616

17-
export default function Fade({ exit, entry, fade, duration, ...props }) {
17+
export default function Fade({
18+
exit,
19+
entry,
20+
fade: removedProp,
21+
duration,
22+
...props
23+
}) {
1824
const length = duration || 0.4;
1925

2026
return (

0 commit comments

Comments
 (0)