Skip to content

Commit

Permalink
Merge pull request #388 from BarneyStratford/config
Browse files Browse the repository at this point in the history
Remove underused src/lib/config.ts module.
  • Loading branch information
anoek authored Jul 26, 2017
2 parents 1c1e2b3 + 8de60d6 commit 9d41f04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
28 changes: 0 additions & 28 deletions src/lib/config.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/views/RatingHistory/RatingHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import * as React from "react";
import {_, pgettext, interpolate} from "translate";
import {Link} from "react-router";
import {post, get, put, patch} from "requests";
import config from "config";
import data from "data";
import * as moment from "moment";
import {Resolver} from "Resolver";
Expand Down
6 changes: 3 additions & 3 deletions src/views/User/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import * as React from "react";
import {_, pgettext, interpolate, cc_to_country_name, sorted_locale_countries} from "translate";
import {Link} from "react-router";
import {post, get, put, del, patch} from "requests";
import config from "config";
import data from "data";
import * as moment from "moment";
import {Card} from 'material';
Expand Down Expand Up @@ -711,6 +710,7 @@ export class User extends Resolver<UserProperties, any> {


let global_user = data.get("config.user");
let cdn_release = data.get("config.cdn_release");

return (
<div className="User container">
Expand Down Expand Up @@ -840,14 +840,14 @@ export class User extends Resolver<UserProperties, any> {

{(this.state.titles.length > 0) && <dt >{_("Titles")}</dt>}
{(this.state.titles.length > 0) && <dd className="trophies">
{this.state.titles.map((title, idx) => (<img key={idx} className="trophy" src={`${config.cdn_release}/img/trophies/${title.icon}`} title={title.title}/>))}
{this.state.titles.map((title, idx) => (<img key={idx} className="trophy" src={`${cdn_release}/img/trophies/${title.icon}`} title={title.title}/>))}
</dd>}

<dt>{_("Trophies")}</dt>
{(this.state.trophies.length > 0) && <dd className="trophies">
{this.state.trophies.map((trophy, idx) => (
<a key={idx} href={trophy.tournament_id ? ("/tournament/" + trophy.tournament_id) : "#"}>
<img className="trophy" src={`${config.cdn_release}/img/trophies/${trophy.icon}`} title={trophy.title}/>
<img className="trophy" src={`${cdn_release}/img/trophies/${trophy.icon}`} title={trophy.title}/>
</a>
))}
</dd>}
Expand Down

0 comments on commit 9d41f04

Please sign in to comment.