4
2
mirror of https://github.com/getbible/app.git synced 2024-12-22 15:58: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> </ul>
</template> </template>
<script> <script>
import {mapGetters} from 'vuex';
export default { export default {
data: () => { data: () => {
return { return {
@ -25,15 +26,7 @@ export default {
} }
}, },
computed: { computed: {
verses(){ ...mapGetters(['verses', 'dir', 'book_name'])
return this.$store.getters.verses;
},
dir(){
return this.$store.getters.dir;
},
book_name(){
return this.$store.getters.book_name;
}
} }
} }
</script> </script>