update Apps list info (#629)

* update Apps list info

* fix
This commit is contained in:
nicolas 2020-03-03 08:11:25 -03:00 committed by GitHub
parent 63252566dc
commit b084c80a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 16 deletions

View File

@ -1,11 +1,15 @@
// @flow
import appsIconSvg from '../Transactions/TxsTable/TxType/assets/appsIcon.svg'
const appsUrl = process.env.REACT_APP_GNOSIS_APPS_URL
? process.env.REACT_APP_GNOSIS_APPS_URL
: 'https://gnosis-apps.netlify.com'
const appList = [
{
id: '1',
name: 'Compound',
url: process.env.REACT_APP_GNOSIS_APPS_URL || 'https://gnosis-apps.netlify.com',
url: `${appsUrl}/compound`,
iconUrl: 'https://compound.finance/images/compound-mark.svg',
description: '',
providedBy: { name: 'Gnosis', url: '' },
@ -13,7 +17,7 @@ const appList = [
{
id: '2',
name: 'ENS Manager',
url: '',
url: `${appsUrl}/ens`,
iconUrl: 'https://app.ens.domains/static/media/ensIconLogo.4d995d23.svg',
description: '',
providedBy: { name: 'Gnosis', url: '' },
@ -21,24 +25,24 @@ const appList = [
{
id: '3',
name: 'Uniswap',
url: '',
url: `${appsUrl}/uniswap`,
iconUrl:
'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LNun-MDdANv-PeRglM0%2Favatar.png?generation=1538584950851432&alt=media',
description: '',
providedBy: { name: 'Gnosis', url: '' },
},
{
id: '4',
name: 'Nexus Mutual',
url: '',
iconUrl:
'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media',
description: '',
providedBy: {
name: 'Gnosis',
url: '',
},
},
// {
// id: '4',
// name: 'Nexus Mutual',
// url: '',
// iconUrl:
// 'https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/spaces%2F-LK136DM17k-0Gl82Q9B%2Favatar.png?generation=1534411701476772&alt=media',
// description: '',
// providedBy: {
// name: 'Gnosis',
// url: '',
// },
// },
]
export default appList

View File

@ -121,7 +121,7 @@ function Apps({
return
}
if (origin !== getSelectedApp().url) {
if (!getSelectedApp().url.includes(origin)) {
console.error(`Message from ${origin} is different to the App URL ${getSelectedApp().url}`)
return
}