diff --git a/ui/component/userEmailNew/view.jsx b/ui/component/userEmailNew/view.jsx index d69528737..f1c844ec1 100644 --- a/ui/component/userEmailNew/view.jsx +++ b/ui/component/userEmailNew/view.jsx @@ -23,6 +23,8 @@ type Props = { setShareDiagnosticData: boolean => void, doSignUp: (string, ?string) => Promise, clearEmailEntry: () => void, + interestedInYoutubSync: boolean, + doToggleInterestedInYoutubeSync: () => void, }; function UserEmailNew(props: Props) { @@ -35,6 +37,8 @@ function UserEmailNew(props: Props) { setShareDiagnosticData, clearEmailEntry, emailExists, + interestedInYoutubSync, + doToggleInterestedInYoutubeSync, } = props; const { share_usage_data: shareUsageData } = daemonSettings; const { push, location } = useHistory(); @@ -113,6 +117,14 @@ function UserEmailNew(props: Props) { onChange={e => setPassword(e.target.value)} /> + doToggleInterestedInYoutubeSync()} + /> + {!IS_WEB && ( void, }; function UserFirstChannel(props: Props) { - const { createChannel, creatingChannel, claimingReward, user, createChannelError } = props; + const { + createChannel, + creatingChannel, + claimingReward, + user, + createChannelError, + doToggleInterestedInYoutubeSync, + } = props; const { primary_email: primaryEmail } = user; const initialChannel = primaryEmail ? primaryEmail.split('@')[0] : ''; const [channel, setChannel] = useState(initialChannel); @@ -87,7 +94,7 @@ function UserFirstChannel(props: Props) {