Add basic user profiles.
This commit is contained in:
parent
83a376a254
commit
fcccb9df68
5 changed files with 38 additions and 2 deletions
17
src/components/user_profile/user_profile.js
Normal file
17
src/components/user_profile/user_profile.js
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue