aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
blob: 4d52bc95fab335c36122ab243deba3192585500a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import UserCardContent from '../user_card_content/user_card_content.vue'
import { find } from 'lodash'

const UserProfile = {
  computed: {
    user () {
      const id = this.$route.params.id
      const user = find(this.$store.state.users.users, {id})
      return user
    }
  },
  components: {
    UserCardContent
  }
}

export default UserProfile