diff --git a/src/components/modals/settings/sections/About.jsx b/src/components/modals/settings/sections/About.jsx index 40db0d49..9543742e 100644 --- a/src/components/modals/settings/sections/About.jsx +++ b/src/components/modals/settings/sections/About.jsx @@ -11,13 +11,15 @@ export default class About extends React.PureComponent { super(...args); this.state = { contributors: [], - update: '' + sponsors: [], + update: this.props.language.version.checking_update } } async getGitHubData() { const contributors = await (await fetch('https://api.github.com/repos/mue/mue/contributors')).json(); const versionData = await (await fetch('https://api.github.com/repos/mue/mue/releases')).json(); + const { sponsors } = await (await fetch(Constants.SPONSORS_URL + '/list')).json(); let updateMsg = this.props.language.version.no_update; let version = versionData[0].tag_name; @@ -25,9 +27,9 @@ export default class About extends React.PureComponent { updateMsg = `${this.props.language.version.update_available}: ${version}`; } - // TODO: REMOVE BOTS AND MAKE IT ACTUALLY WORK this.setState({ - contributors: contributors, + contributors: contributors.filter((contributor) => !contributor.login.includes('bot')), + sponsors: sponsors, update: updateMsg }); } @@ -59,7 +61,11 @@ export default class About extends React.PureComponent { )}
to be implemented
+ {this.state.sponsors.map((item) => +