Merge pull request #14237 from desktop/beta-link-in-about

Add a suggestion to try the beta channel
This commit is contained in:
tidy-dev 2022-03-28 09:33:23 -04:00 committed by GitHub
commit 4b75820c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,24 @@ export class About extends React.Component<IAboutProps, IAboutState> {
return null
}
private renderBetaLink() {
if (__RELEASE_CHANNEL__ === 'beta') {
return
}
return (
<div>
<p className="no-padding">Looking for the latest features?</p>
<p className="no-padding">
Check out the{' '}
<LinkButton uri="https://desktop.github.com/beta">
Beta Channel
</LinkButton>
</p>
</div>
)
}
public render() {
const name = this.props.applicationName
const version = this.props.applicationVersion
@ -271,6 +289,7 @@ export class About extends React.Component<IAboutProps, IAboutState> {
</p>
{this.renderUpdateDetails()}
{this.renderUpdateButton()}
{this.renderBetaLink()}
</DialogContent>
<DefaultDialogFooter />
</Dialog>