Drop built-in dapps for stable (#8030)

This commit is contained in:
Jaco Greeff
2018-03-01 19:25:15 +01:00
committed by Marek Kotewicz
parent caaac78971
commit 362fb1dfed
4 changed files with 57 additions and 37 deletions

14
js/src/Dapps/blacklist.js Normal file
View File

@@ -0,0 +1,14 @@
module.exports = [
// tokendeploy
'0xf9f2d620c2e08f83e45555247146c62185e4ab7cf82a4b9002a265a0d020348f',
// methodreg
'0xf49089046f53f5d2e5f3513c1c32f5ff57d986e46309a42d2b249070e4e72c46',
// dappreg
'0x7bbc4f1a27628781b96213e781a1b8eec6982c1db8fac739af6e4c5a55862c03',
// githubhint
'0x058740ee9a5a3fb9f1cfa10752baec87e09cc45cd7027fd54708271aca300c75',
// console
'0xa635a9326814bded464190eddf0bdb90ce92d40ea2359cf553ea80e3c5a4076c',
// registry
'0xd1adaede68d344519025e2ff574650cd99d3830fe6d274c7a7843cdc00e17938'
];

View File

@@ -29,6 +29,8 @@ import DappCard from './DappCard';
import styles from './dapps.css';
import BLACKLIST from './blacklist';
@observer
class Dapps extends Component {
static contextTypes = {
@@ -53,8 +55,10 @@ class Dapps extends Component {
}
}
renderSection = (apps) => (
apps && apps.length > 0 &&
renderSection = (_apps) => {
const apps = _apps.filter(({ id }) => !BLACKLIST.includes(id));
return apps && apps.length > 0 &&
<div className={ styles.dapps }>
{
apps.map((app, index) => (
@@ -68,8 +72,8 @@ class Dapps extends Component {
/>
))
}
</div>
)
</div>;
}
render () {
return (