akkoma-fe/src/components/user_panel/user_panel.js

19 lines
434 B
JavaScript
Raw Normal View History

import AuthForm from '../auth_form/auth_form.js'
2016-10-30 15:53:58 +00:00
import PostStatusForm from '../post_status_form/post_status_form.vue'
2019-03-05 19:01:49 +00:00
import UserCard from '../user_card/user_card.vue'
import { mapState } from 'vuex'
2016-10-27 16:02:28 +00:00
const UserPanel = {
computed: {
signedIn () { return this.user },
...mapState({ user: state => state.users.currentUser })
2016-10-27 16:02:28 +00:00
},
components: {
AuthForm,
2016-11-30 21:27:19 +00:00
PostStatusForm,
2019-03-05 19:01:49 +00:00
UserCard
2016-10-27 16:02:28 +00:00
}
}
export default UserPanel