From 5af8dfac11ddc0045ada6771c75b8c553d40a7c5 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sun, 29 Aug 2021 11:02:55 +0100 Subject: [PATCH] style: change about and search to use recent code --- .../modals/main/settings/sections/About.jsx | 18 +++++++++--------- src/components/widgets/search/Search.jsx | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/modals/main/settings/sections/About.jsx b/src/components/modals/main/settings/sections/About.jsx index b2cca64f..69f8b481 100644 --- a/src/components/modals/main/settings/sections/About.jsx +++ b/src/components/modals/main/settings/sections/About.jsx @@ -111,23 +111,23 @@ export default class About extends PureComponent {

{this.language.contributors}

{this.state.loading}

- {this.state.contributors.map((item) => ( - - {item.login}/ + {this.state.contributors.map(({ handle, avatar, login }) => ( + + {handle} ))} { // for those who contributed without opening a pull request - this.state.other_contributors.map((item) => ( - - {item.login}/ + this.state.other_contributors.map(({ handle, avatar, login }) => ( + + {handle} ))}

{this.language.supporters}

{this.state.loading}

- {this.state.sponsors.map((item) => ( - - {item.handle} + {this.state.sponsors.map(({ handle, avatar }) => ( + + {handle} ))} diff --git a/src/components/widgets/search/Search.jsx b/src/components/widgets/search/Search.jsx index 95b07000..a6124c84 100644 --- a/src/components/widgets/search/Search.jsx +++ b/src/components/widgets/search/Search.jsx @@ -177,14 +177,14 @@ export default class Search extends PureComponent {
this.toggleDropdown()}>{this.state.currentSearch}
- {searchEngines.map((engine) => { - if (engine.name === this.state.currentSearch) { + {searchEngines.map(({ name }) => { + if (name === this.state.currentSearch) { return null; } return ( - - this.setSearch(engine.name)}>{engine.name} + + this.setSearch(name)}>{name}
);