diff --git a/app/views/dev.js b/app/views/dev.js index 4cfd605..ce0c3cf 100644 --- a/app/views/dev.js +++ b/app/views/dev.js @@ -27,3 +27,10 @@ export default () => html` `; + +// TODO: +// Provide flow where user logs in with GitHub: +// - get access token +// - show field for user to enter their wallet address +// - send access token and wallet address to API +// - parse response diff --git a/app/views/redirect.js b/app/views/redirect.js index d25daab..1c5b8bc 100644 --- a/app/views/redirect.js +++ b/app/views/redirect.js @@ -48,23 +48,31 @@ export default (state, emit) => { // eslint-disable-line // below should be refactored into components let pageScript = ""; - if (partialPath === "glossary") - pageScript = - ""; + switch(true) { + case partialPath === "glossary": + pageScript = + ""; + break; - if (partialPath === "overview") - pageScript = - ""; + case partialPath === "overview": + pageScript = + ""; + break; - if (partialPath === "playground") - pageScript = - ""; + case partialPath === "playground": + pageScript = + ""; + break; + + default: + break; + } return html`