Skip to content

Commit

Permalink
[UPDATE] Disable iOS links (#136)
Browse files Browse the repository at this point in the history
* updated release notes and package version

* removed unused import

* revert changes and disable iOS explore sites
  • Loading branch information
sethkfman authored Aug 15, 2022
1 parent d5adc9b commit af2b547
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/data/all-dapps.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,7 @@ const categories = [
}
];

export default categories;
// hide any of the above on iOS when displayIos is false
const filtered = categories.filter(({ displayIos = true }) => !(isIOS && !displayIos));

export default filtered;
3 changes: 2 additions & 1 deletion src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ExploreDapps from '../components/ExploreDapps/';
import Favorites from '../components/Favorites/';
import TakeATour from '../components/TakeATour/';
import{trackEvent, ANALYTICS_EVENT_OPTS} from '../util/analytics';
import { isIOS } from 'react-device-detect';

const isMobile = {
Android: function () {
Expand Down Expand Up @@ -41,7 +42,7 @@ export default class Home extends Component {
<Autocomplete />
{/* <FeaturedDappsCarousel /> */}
<Tabs>
<div label="Explore sites">
<div label="Explore sites" hide={isIOS}>
<ExploreDapps />
</div>
<div label="Favorites">
Expand Down

0 comments on commit af2b547

Please sign in to comment.