Skip to content

Commit

Permalink
Revert "Remove patron links on ios"
Browse files Browse the repository at this point in the history
This reverts commit 18e8339.
  • Loading branch information
veloce committed Feb 11, 2020
1 parent 27354e0 commit 78ce3bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/ui/about.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Capacitor } from '@capacitor/core'
import * as Mithril from 'mithril'
import h from 'mithril/hyperscript'
import router from '../router'
Expand Down Expand Up @@ -33,7 +32,7 @@ export default {

<li>Lichess would not exist without the thousands of hours of time from volunteers, both from {externalLink('website devs', 'https://github.com/ornicar/lila/graphs/contributors')} and {externalLink('mobile devs', 'https://github.com/veloce/lichobile/graphs/contributors')}, who create new features and/or bugs, as well as our administrative team, who police the site and help with long-term vision.</li>

<li>{Capacitor.platform === 'ios' ? 'Patrons' : externalLink('Patrons', 'https://lichess.org/patron')} provide a steady stream of income to our site, sufficient to run our servers and handle expenses.</li>
<li>{externalLink('Patrons', 'https://lichess.org/patron')} provide a steady stream of income to our site, sufficient to run our servers and handle expenses.</li>

<li>Finally, the players who come to Lichess to have fun, relax and learn, without whom this would all be pointless!</li>

Expand All @@ -44,14 +43,12 @@ export default {
<ul className="about_links">
<li>{externalLink('Github', 'https://github.com/veloce/lichobile')}</li>
<li>{externalLink('Contribute', 'https://lichess.org/help/contribute')}</li>
{ Capacitor.platform === 'ios' ?
null :
<li>{externalLink('Donate', 'https://lichess.org/patron')}</li>
}
<li>{externalLink('Donate', 'https://lichess.org/patron')}</li>
<li>{externalLink('Contact', 'https://lichess.org/contact')}</li>
<li>{externalLink('Terms of Service', 'https://lichess.org/terms-of-service')}</li>
<li>{externalLink('Privacy Policy', 'https://lichess.org/privacy')}</li>
<li>{externalLink('Database', 'https://database.lichess.org/')}</li>
<li>{externalLink('lichess.org/about', 'https://lichess.org/about')}</li>
</ul>

</div>
Expand Down
3 changes: 1 addition & 2 deletions src/ui/user/userView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Capacitor } from '@capacitor/core'
import * as Mithril from 'mithril'
import h from 'mithril/hyperscript'
import router from '../../router'
Expand Down Expand Up @@ -137,7 +136,7 @@ function renderWebsiteLinks(ctrl: IUserCtrl, user: ProfileUser) {
</a>
</p>
}
{ Capacitor.platform !== 'ios' && user.patron ?
{ user.patron ?
<p>
<a className="external_link"
oncreate={helper.ontapY(() => xhr.openWebsiteAuthPage('/patron'))}
Expand Down

0 comments on commit 78ce3bb

Please sign in to comment.