Whalebird-desktop-client-ma.../src/renderer/components/TimelineSpace/Home.vue

29 lines
506 B
Vue
Raw Normal View History

<template>
<div id="home">
<div class="home-timeline" v-for="message in timeline" v-bind:key="message.id">
<toot :message="message"></toot>
</div>
</div>
</template>
<script>
import { mapState } from 'vuex'
import Toot from './Cards/Toot'
export default {
name: 'home',
components: { Toot },
computed: {
...mapState({
timeline: state => state.TimelineSpace.homeTimeline
})
}
}
</script>
<style lang="scss" scoped>
.home-timeline {
margin-left: 16px;
}
</style>