aboutsummaryrefslogtreecommitdiff
path: root/src/components/who_to_follow
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-04 03:09:00 -0400
committertaehoon <th.dev91@gmail.com>2019-04-17 11:32:49 -0400
commitca26776b4e459ed7729d8a5cf354621a0d96ae59 (patch)
tree21e4229c373c6d7149ea2a218e24c14b11a4070e /src/components/who_to_follow
parentf066ccd28badfe035a4fa2c4b8e195a6edf0bf0d (diff)
recover border between basic-user-card using list component
Diffstat (limited to 'src/components/who_to_follow')
-rw-r--r--src/components/who_to_follow/who_to_follow.js4
-rw-r--r--src/components/who_to_follow/who_to_follow.vue6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/components/who_to_follow/who_to_follow.js b/src/components/who_to_follow/who_to_follow.js
index be0b8827..9b100334 100644
--- a/src/components/who_to_follow/who_to_follow.js
+++ b/src/components/who_to_follow/who_to_follow.js
@@ -1,9 +1,11 @@
import apiService from '../../services/api/api.service.js'
import FollowCard from '../follow_card/follow_card.vue'
+import List from '../list/list.vue'
const WhoToFollow = {
components: {
- FollowCard
+ FollowCard,
+ List
},
data () {
return {
diff --git a/src/components/who_to_follow/who_to_follow.vue b/src/components/who_to_follow/who_to_follow.vue
index 1630f5ac..4812dd81 100644
--- a/src/components/who_to_follow/who_to_follow.vue
+++ b/src/components/who_to_follow/who_to_follow.vue
@@ -4,7 +4,11 @@
{{$t('who_to_follow.who_to_follow')}}
</div>
<div class="panel-body">
- <FollowCard v-for="user in users" :key="user.id" :user="user"/>
+ <List :items="users">
+ <template slot="item" scope="p">
+ <FollowCard :user="p.item" />
+ </template>
+ </List>
</div>
</div>
</template>