aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_panel/user_panel.js
blob: fed42fcaf8d83c6fb09f9144a47f05f2b4762988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import LoginForm from '../login_form/login_form.vue'

const UserPanel = {
  computed: {
    user () { return this.$store.state.users.currentUser },
    style () {
      return {
        color: `#${this.user.profile_link_color}`,
        'background-image': `url(${this.user.cover_photo})`
      }
    }
  },
  components: {
    LoginForm
  }
}

export default UserPanel