Skip to content

Commit b4829ad

Browse files
authored
Merge pull request #188 from madfish-solutions/TW-1757-align-i-os-app-features-with-the-latest-android-version
TW-1757 Revert the changes of dApps list for iOS
2 parents e9be962 + 0ce5f19 commit b4829ad

File tree

3 files changed

+5
-41
lines changed

3 files changed

+5
-41
lines changed

src/getDAppsStats.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { DAPPS_LIST, IOS_DAPPS_LIST } from './utils/dapp-list-constants';
1+
import { DAPPS_LIST } from './utils/dapp-list-constants';
22
import logger from './utils/logger';
33

4-
const getDAppsStats = (forIOs: boolean) => {
4+
const getDAppsStats = () => {
55
logger.info('Getting dApps list...');
66

77
return {
8-
dApps: forIOs ? IOS_DAPPS_LIST : DAPPS_LIST
8+
dApps: DAPPS_LIST
99
};
1010
};
1111

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ app.post('/api/notifications', basicAuth, async (req, res) => {
174174
});
175175

176176
app.get('/api/dapps', (req, res) => {
177-
const platform = req.query.platform;
178-
179-
const data = getDAppsStats(platform === 'ios');
177+
// This request has 'platform' query parameter for the case we need to filter dapps by the client platform
178+
const data = getDAppsStats();
180179

181180
res.status(200).header('Cache-Control', 'public, max-age=300').send(data);
182181
});

src/utils/dapp-list-constants.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -154,38 +154,3 @@ export const DAPPS_LIST: DappListItem[] = [
154154
categories: [DappType.DeFi]
155155
}
156156
];
157-
158-
export const IOS_DAPPS_LIST: DappListItem[] = [
159-
{
160-
name: 'Tezos Projects',
161-
dappUrl: 'https://ecosystem.tezos.com',
162-
logo: 'https://temple-wallet-stage-bucket.nyc3.cdn.digitaloceanspaces.com/dapps/tezos.png',
163-
slug: 'ecosystem.tezos.com',
164-
type: DappType.Other,
165-
categories: []
166-
},
167-
{
168-
name: 'Mad.Fish',
169-
dappUrl: 'https://mad.fish/products',
170-
logo: 'https://temple-wallet-stage-bucket.nyc3.cdn.digitaloceanspaces.com/dapps/madfish.png',
171-
slug: 'mad.fish/products',
172-
type: DappType.Other,
173-
categories: []
174-
},
175-
{
176-
name: 'Temple Wallet',
177-
dappUrl: 'https://templewallet.com/download?platform=extension',
178-
logo: 'https://temple-wallet-stage-bucket.nyc3.cdn.digitaloceanspaces.com/dapps/temple.png',
179-
slug: 'download-tw-extension',
180-
type: DappType.Other,
181-
categories: []
182-
},
183-
{
184-
name: 'TZKT',
185-
dappUrl: 'https://tzkt.io/dapps',
186-
logo: 'https://temple-wallet-stage-bucket.nyc3.cdn.digitaloceanspaces.com/dapps/tzkt.png',
187-
slug: 'tzkt.io/dapps',
188-
type: DappType.Other,
189-
categories: []
190-
}
191-
];

0 commit comments

Comments
 (0)