diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-18 17:20:27 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-18 17:20:27 -0700 |
commit | 4e5561283392d2ab1545cabb4455a8ffc490f86b (patch) | |
tree | a4ee9cc096826dc32faf3675212c7f95f1b3ea5e /ui/src/components/sponsors.tsx | |
parent | 82ea5ae9186e5a8e631c87a61077e16713eb87a4 (diff) |
Running prettier on code.
- #305 , #309
Diffstat (limited to 'ui/src/components/sponsors.tsx')
-rw-r--r-- | ui/src/components/sponsors.tsx | 99 |
1 files changed, 60 insertions, 39 deletions
diff --git a/ui/src/components/sponsors.tsx b/ui/src/components/sponsors.tsx index 5d0b1b17..077aa7d3 100644 --- a/ui/src/components/sponsors.tsx +++ b/ui/src/components/sponsors.tsx @@ -3,23 +3,21 @@ import { WebSocketService } from '../services'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; -let general = [ - "riccardo","NotTooHighToHack", -]; +let general = ['riccardo', 'NotTooHighToHack']; // let highlighted = []; // let silver = []; // let gold = []; // let latinum = []; export class Sponsors extends Component<any, any> { - constructor(props: any, context: any) { super(props, context); - } componentDidMount() { - document.title = `${i18n.t('sponsors')} - ${WebSocketService.Instance.site.name}`; + document.title = `${i18n.t('sponsors')} - ${ + WebSocketService.Instance.site.name + }`; } render() { @@ -31,62 +29,85 @@ export class Sponsors extends Component<any, any> { <hr /> {this.bitcoin()} </div> - ) + ); } topMessage() { return ( <div> - <h5><T i18nKey="sponsors_of_lemmy">#</T></h5> + <h5> + <T i18nKey="sponsors_of_lemmy">#</T> + </h5> <p> - <T i18nKey="sponsor_message">#<a href="https://github.com/dessalines/lemmy">#</a></T> + <T i18nKey="sponsor_message"> + #<a href="https://github.com/dessalines/lemmy">#</a> + </T> </p> - <a class="btn btn-secondary" href="https://www.patreon.com/dessalines"><T i18nKey="support_on_patreon">#</T></a> + <a class="btn btn-secondary" href="https://www.patreon.com/dessalines"> + <T i18nKey="support_on_patreon">#</T> + </a> </div> - ) + ); } sponsors() { return ( <div class="container"> - <h5><T i18nKey="sponsors">#</T></h5> - <p><T i18nKey="general_sponsors">#</T></p> + <h5> + <T i18nKey="sponsors">#</T> + </h5> + <p> + <T i18nKey="general_sponsors">#</T> + </p> <div class="row card-columns"> - {general.map(s => + {general.map(s => ( <div class="card col-12 col-md-2"> <div>{s}</div> </div> - )} + ))} </div> </div> - ) + ); } bitcoin() { return ( <div> - <h5><T i18nKey="crypto">#</T></h5> - <div class="table-responsive"> - <table class="table table-hover text-center"> - <tbody> - <tr> - <td><T i18nKey="bitcoin">#</T></td> - <td><code>1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK</code></td> - </tr> - <tr> - <td><T i18nKey="ethereum">#</T></td> - <td><code>0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01</code></td> - </tr> - <tr> - <td><T i18nKey="monero">#</T></td> - <td> - <code>41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV</code> - </td> - </tr> - </tbody> - </table> + <h5> + <T i18nKey="crypto">#</T> + </h5> + <div class="table-responsive"> + <table class="table table-hover text-center"> + <tbody> + <tr> + <td> + <T i18nKey="bitcoin">#</T> + </td> + <td> + <code>1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK</code> + </td> + </tr> + <tr> + <td> + <T i18nKey="ethereum">#</T> + </td> + <td> + <code>0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01</code> + </td> + </tr> + <tr> + <td> + <T i18nKey="monero">#</T> + </td> + <td> + <code> + 41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV + </code> + </td> + </tr> + </tbody> + </table> + </div> </div> - </div> - ) + ); } } - |