diff --git a/app/src/ui/welcome/start.tsx b/app/src/ui/welcome/start.tsx index 7669398fee..060d1282f6 100644 --- a/app/src/ui/welcome/start.tsx +++ b/app/src/ui/welcome/start.tsx @@ -7,6 +7,7 @@ import * as octicons from '../octicons/octicons.generated' import { Button } from '../lib/button' import { Loading } from '../lib/loading' import { BrowserRedirectMessage } from '../lib/authentication-form' +import { Ref } from '../lib/ref' import { SamplesURL } from '../../lib/stats' /** @@ -20,6 +21,15 @@ interface IStartProps { readonly advance: (step: WelcomeStep) => void readonly dispatcher: Dispatcher readonly loadingBrowserAuth: boolean + + /** + * The device flow verification, once GitHub has issued one. Present means + * there is a code on screen for the user to type into their browser. + */ + readonly deviceFlow?: { + readonly userCode: string + readonly verificationURI: string + } } /** The first step of the Welcome flow. */ @@ -35,17 +45,7 @@ export class Start extends React.Component {

Welcome to GitHub Desktop

- {!this.props.loadingBrowserAuth ? ( - <> -

- GitHub Desktop is a seamless way to contribute to projects on - GitHub and GitHub Enterprise. Sign in below to get started with - your existing projects. -

- - ) : ( -

{BrowserRedirectMessage}

- )} + {this.renderIntroOrCode()}