diff --git a/app/components/ecosystem.js b/app/components/ecosystem.js index 3b83a2f..3dd2b52 100644 --- a/app/components/ecosystem.js +++ b/app/components/ecosystem.js @@ -1,11 +1,5 @@ "use strict"; - - -// P A C K A G E - -import Component from "choo/component"; - // V A R I A B L E S const APPLICATIONS = require("./ecosystem/module-applications"); @@ -16,13 +10,7 @@ const LIGHTHOUSE = require("./ecosystem/submodule-lighthouse"); const REFLECTOR = require("./ecosystem/submodule-reflector"); const WALLET = require("./ecosystem/submodule-wallet"); - - -// P R O G R A M - -Ecosystem.prototype = Object.create(Component.prototype); - -Ecosystem.prototype.createElement = () => { +export default function () { return `
`; }; - - - -// E X P O R T - -module.exports = exports = Ecosystem; - - - -// H E L P E R S - -function Ecosystem() { - if (!(this instanceof Ecosystem)) return new Ecosystem(); - Component.call(this); -} diff --git a/app/components/feature-links.js b/app/components/feature-links.js index b406f4a..c1b565a 100644 --- a/app/components/feature-links.js +++ b/app/components/feature-links.js @@ -1,11 +1,5 @@ "use strict"; - - -// P A C K A G E - -import Component from "choo/component"; - // V A R I A B L E const links = [ // TODO: Update images @@ -45,13 +39,7 @@ const links = [ // TODO: Update images } ]; - - -// P R O G R A M - -FeaturedLinks.prototype = Object.create(Component.prototype); - -FeaturedLinks.prototype.createElement = () => { +export default function () { const renderedLinks = []; let imageLink = ""; @@ -65,21 +53,6 @@ FeaturedLinks.prototype.createElement = () => { `; }; - - -// E X P O R T - -module.exports = exports = FeaturedLinks; - - - -// H E L P E R S - -function FeaturedLinks() { - if (!(this instanceof FeaturedLinks)) return new FeaturedLinks(); - Component.call(this); -} - function returnLinkTemplate(url, title, image) { return `