From e5301dec04652e3cb7d2357aadd08860ad09eb9b Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 17 Nov 2020 14:10:14 -0500 Subject: [PATCH] move nudge to FileReactions and add src param to sign up redirects --- ui/component/button/view.jsx | 11 ++++- ui/component/claimSupportButton/index.js | 2 - ui/component/claimSupportButton/view.jsx | 51 +++++------------------- ui/component/fileReactions/view.jsx | 15 ++++++- ui/component/nudgeFloating/index.js | 9 +++++ ui/component/nudgeFloating/view.jsx | 43 ++++++++++++++++++++ ui/component/sideNavigation/view.jsx | 2 +- ui/scss/component/_nudge.scss | 2 +- 8 files changed, 88 insertions(+), 47 deletions(-) create mode 100644 ui/component/nudgeFloating/index.js create mode 100644 ui/component/nudgeFloating/view.jsx diff --git a/ui/component/button/view.jsx b/ui/component/button/view.jsx index bce180c10..119e83fdf 100644 --- a/ui/component/button/view.jsx +++ b/ui/component/button/view.jsx @@ -27,6 +27,7 @@ type Props = { iconColor?: string, activeClass?: string, innerRef: ?any, + authSrc?: string, // Events onClick: ?(any) => any, onMouseEnter: ?(any) => any, @@ -50,6 +51,7 @@ const Button = forwardRef((props: Props, ref: any) => { label, largestLabel, icon, + // This should rarely be used. Regular buttons should just use `icon` // `iconRight` is used for the header (home) button with the LBRY icon and external links that are displayed inline iconRight, @@ -67,6 +69,7 @@ const Button = forwardRef((props: Props, ref: any) => { myref, dispatch, //