github.com/resonatecoop/id@v1.1.0-43/frontend/src/views/profile.js (about) 1 const html = require('choo/html') 2 const ProfileForm = require('../components/forms/basic-info') 3 4 /** 5 * Render view for artist, label and other profile forms 6 * @param {Object} state Choo state 7 * @param {Function} emit Emit choo event (nanobus) 8 */ 9 module.exports = (state, emit) => { 10 return html` 11 <div class="flex flex-column flex-auto min-vh-100"> 12 ${state.cache(ProfileForm, 'profile-form').render({ 13 profile: state.profile || {} 14 })} 15 </div> 16 ` 17 }