Skip to content

Commit

Permalink
Revert fav icon (#191)
Browse files Browse the repository at this point in the history
* Revert "fix: pooltogether dapp url link fixes #185 (#186)"

This reverts commit d2e3629.

* Revert "Replace the use of FaviconKit API (#188)"

This reverts commit 8e63855.

* remove change on all dapps TLDR from us to com
  • Loading branch information
tommasini authored Nov 2, 2023
1 parent 8e63855 commit 4d04db8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 141 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"@fortawesome/fontawesome-svg-core": "^1.2.19",
"@fortawesome/free-solid-svg-icons": "^5.9.0",
"@fortawesome/react-fontawesome": "^0.1.4",
"@xmldom/xmldom": "^0.8.10",
"is-url": "^1.2.4",
"react": "^16.8.6",
"react-device-detect": "^1.17.0",
"react-dom": "^16.8.6",
Expand Down
1 change: 0 additions & 1 deletion src/components/Dapp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default class Dapp extends Component {
<a href={url} className='dapp-container' onClick={this.trackEventOpenListedDapp}>
<img
src={icon}
crossorigin="anonymous"
className={`dapp-logo ${size === 'small' ? 'dapp-logo-small':''}`}
alt={`${name} logo`}
/>
Expand Down
38 changes: 0 additions & 38 deletions src/components/Favorites/FavoriteItem.js

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/Favorites/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { getHost } from '../../util/browser';
import FavoriteItem from './FavoriteItem';
import Dapp from '../Dapp';
import './index.css';

export default class Favorites extends Component {
Expand Down Expand Up @@ -31,10 +31,10 @@ export default class Favorites extends Component {
<div className={'favorites'}>
{
this.state.favorites.map((dapp, i) => (
<FavoriteItem
<Dapp
data={{
...dapp,
icon: getHost(dapp.url),
icon: `https://api.faviconkit.com/${getHost(dapp.url)}/64`,
description: null
}}
key={`fav-${dapp.url}`}
Expand Down
87 changes: 0 additions & 87 deletions src/util/favicon.js

This file was deleted.

10 changes: 0 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1502,11 +1502,6 @@
"@webassemblyjs/wast-parser" "1.8.5"
"@xtuc/long" "4.2.2"

"@xmldom/xmldom@^0.8.10":
version "0.8.10"
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.10.tgz#a1337ca426aa61cef9fe15b5b28e340a72f6fa99"
integrity sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==

"@xtuc/ieee754@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
Expand Down Expand Up @@ -5111,11 +5106,6 @@ is-typedarray@~1.0.0:
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=

is-url@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/is-url/-/is-url-1.2.4.tgz#04a4df46d28c4cff3d73d01ff06abeb318a1aa52"
integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==

is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
Expand Down

0 comments on commit 4d04db8

Please sign in to comment.