4
2
mirror of https://github.com/getbible/app.git synced 2024-12-22 07:48:55 +00:00

Change Verse component to get Verses from getters

This commit is contained in:
Erastus Amunwe 2020-11-03 21:05:21 +02:00
parent 72f161d6c6
commit 44dfa73045

View File

@ -16,6 +16,7 @@
</ul>
</template>
<script>
import {mapGetters} from 'vuex';
export default {
data: () => {
return {
@ -25,15 +26,7 @@ export default {
}
},
computed: {
verses(){
return this.$store.getters.verses;
},
dir(){
return this.$store.getters.dir;
},
book_name(){
return this.$store.getters.book_name;
}
...mapGetters(['verses', 'dir', 'book_name'])
}
}
</script>