Skip to content

Commit a1a1e3a

Browse files
committed
Remove some icons
1 parent 0dee410 commit a1a1e3a

File tree

15 files changed

+17
-106
lines changed

15 files changed

+17
-106
lines changed

components/Row.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { Fragment, useState } from 'react';
22
import { ProtocolData } from 'data/types';
3-
import icons from './icons';
43
import { CSSTransition } from 'react-transition-group';
54
import ReactGA from 'react-ga';
65
import { usePlausible } from 'next-plausible';
@@ -21,7 +20,7 @@ const Row: React.FC<RowProps> = ({ protocol, sort }) => {
2120
const plausible = usePlausible();
2221
const [open, setOpen] = useState(false);
2322

24-
const icon = protocol.icon || icons[protocol.id];
23+
const icon = protocol.icon || null;
2524

2625
const isApp = protocol.category !== 'l1' && protocol.category !== 'l2';
2726

components/SocialCard/Row.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { ProtocolData } from 'data/types';
3-
import icons from '../icons';
43

54
interface RowProps {
65
protocol: ProtocolData;
@@ -12,15 +11,16 @@ const font = 'SofiaProRegular, Sofia Pro, sofia-pro';
1211
const Row: React.FC<RowProps> = ({ protocol, index }) => {
1312
let svgImg;
1413

15-
const icon = protocol.icon || icons[protocol.id];
14+
const icon = protocol.icon || null;
1615

1716
if (icon?.indexOf('data:image/svg+xml;base64,') === 0) {
1817
const buffer = new Buffer(icon.substr(26), 'base64');
1918
svgImg = buffer.toString('ascii');
2019
svgImg = svgImg.replace(/">/, '" width="24" height="24">');
2120
}
2221

23-
const background = protocol.category === 'l1' || protocol.category === 'l2' ? '#ffffff' : '#fad3f6';
22+
const background =
23+
protocol.category === 'l1' || protocol.category === 'l2' ? '#ffffff' : '#fad3f6';
2424

2525
return (
2626
<g transform={`translate(28, ${117 + 37 * index})`}>

components/icons/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import bancor from './bancor.png';
2-
import hegic from './hegic.png';
3-
import honeyswap from './honeyswap.png';
41
import mstable from './mstable.svg';
52
import polymarket from './polymarket.svg';
63
import tbtc from './tbtc.svg';
@@ -10,9 +7,6 @@ import zilliqa from './zilliqa.svg';
107

118
// Legacy, don't add new icons here
129
const icons: { [id: string]: string } = {
13-
bancor,
14-
hegic,
15-
honeyswap,
1610
mstable,
1711
polymarket,
1812
tbtc,

components/year/YearRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { Fragment, useState } from 'react';
22
import { ProtocolData } from 'data/types';
3-
import icons from '../icons';
43
import { CSSTransition } from 'react-transition-group';
54
import { usePlausible } from 'next-plausible';
65
import { ChevronDown, ChevronUp } from 'react-feather';
@@ -19,7 +18,7 @@ const Row: React.FC<RowProps> = ({ protocol }) => {
1918
const plausible = usePlausible();
2019
const [open, setOpen] = useState(false);
2120

22-
const icon = protocol.icon || icons[protocol.id];
21+
const icon = protocol.icon || null;
2322

2423
const isApp = protocol.category !== 'l1' && protocol.category !== 'l2';
2524

data/adapters/dfyn.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { dateToTimestamp } from '../lib/time';
22
import { query } from '../lib/graph';
33
import { RegisterFunction } from '../types';
4-
import icon from 'icons/dfyn.svg';
54

65
export async function getDfynData(date: string): Promise<number> {
76
const graphQuery = `query fees($date: Int!) {
@@ -37,7 +36,6 @@ export default function registerUniswap(register: RegisterFunction) {
3736
};
3837

3938
register('dfyn', query, {
40-
icon,
4139
name: 'Dfyn',
4240
category: 'dex',
4341
description: 'A multi-chain AMM decentralized exchange',

data/adapters/ren.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { RegisterFunction } from '../types';
22
import { dateToTimestamp } from '../lib/time';
3-
import icon from 'icons/ren.svg';
43

54
const ONE_DAY = 86400;
65

@@ -78,7 +77,6 @@ export default function registerRen(register: RegisterFunction) {
7877
};
7978

8079
register('ren', query, {
81-
icon,
8280
name: 'Ren Protocol',
8381
category: 'xchain',
8482
description: 'Ren Protocol is a protocol for cross-chain asset transfers.',

data/adapters/swapr.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { dateToTimestamp } from '../lib/time';
22
import { query } from '../lib/graph';
33
import { RegisterFunction, Category } from '../types';
4-
import icon from 'icons/swapr.svg';
54

65
async function getSwaprData(subgraph: string, date: string): Promise<number> {
76
const graphQuery = `query fees($date: Int!) {
@@ -48,7 +47,6 @@ export default function registerSwapr(register: RegisterFunction) {
4847
adapter: 'swpar',
4948
tokenTicker: 'SWPR',
5049
website: 'https://swapr.eth.link',
51-
icon,
5250
protocolLaunch: '2020-12-10',
5351
};
5452

icons/arbitrum.svg

Lines changed: 0 additions & 25 deletions
This file was deleted.

icons/dfyn.svg

Lines changed: 0 additions & 12 deletions
This file was deleted.

icons/liquity.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)