diff options
author | haraldox <hnaumann+github@gmail.com> | 2018-01-22 14:26:31 +0100 |
---|---|---|
committer | haraldox <hnaumann+github@gmail.com> | 2018-01-22 14:26:31 +0100 |
commit | 945cb5982c4b1b42d17ce91171b6a6740eb3a3e5 (patch) | |
tree | 8481794625abecea3230e49f789b7336be512bf0 /src/components/ui | |
parent | ADDED invite button in Account Settings (diff) | |
download | ferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.tar.gz ferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.tar.zst ferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.zip |
return to account screen from invite screen
cheap solution because `state` prop of `<Link>` is not being passed to route
Diffstat (limited to 'src/components/ui')
-rw-r--r-- | src/components/ui/Link.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ui/Link.js b/src/components/ui/Link.js index f5da921fa..bc3c2d8aa 100644 --- a/src/components/ui/Link.js +++ b/src/components/ui/Link.js | |||
@@ -62,7 +62,10 @@ Link.wrappedComponent.propTypes = { | |||
62 | oneOrManyChildElements, | 62 | oneOrManyChildElements, |
63 | PropTypes.string, | 63 | PropTypes.string, |
64 | ]).isRequired, | 64 | ]).isRequired, |
65 | to: PropTypes.string.isRequired, | 65 | to: PropTypes.oneOfType([ |
66 | PropTypes.string, | ||
67 | PropTypes.object | ||
68 | ]).isRequired, | ||
66 | className: PropTypes.string, | 69 | className: PropTypes.string, |
67 | activeClassName: PropTypes.string, | 70 | activeClassName: PropTypes.string, |
68 | strictFilter: PropTypes.bool, | 71 | strictFilter: PropTypes.bool, |