Created
January 14, 2022 19:44
-
-
Save gsans/7b892d5073e657f3d16dcc009d9f8b7b to your computer and use it in GitHub Desktop.
codez050: new message results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<div v-for="result in results" :key="result.id"> | |
<UserNewMessage | |
v-if="result.screenName" | |
:user="result" | |
@selected="selected" | |
/> | |
</div> | |
</div> | |
</template> | |
<script> | |
import UserNewMessage from './UserNewMessage.vue' | |
import { mapGetters } from 'vuex'; | |
export default { | |
name: 'ResultsNewMessage', | |
props: ['results'], | |
components: { | |
UserNewMessage | |
}, | |
computed: { | |
...mapGetters('twitter', { | |
nextToken: 'nextTokenSearch' | |
}), | |
...mapGetters('twitter', [ | |
'profile', | |
]), | |
}, | |
methods: { | |
selected(user) { | |
this.$emit('selected', user); | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment