-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathAddressSelector.vue
47 lines (41 loc) · 1.04 KB
/
AddressSelector.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
<div class="flex-column">
<IdenticonStack @click="$emit('openAddressSelector')" :show-bitcoin="showBitcoin" />
<InteractiveShortAddress :address="activeAddressInfo.address" tooltipPosition="bottom right" />
</div>
</template>
<script lang="ts">
import { useAddressStore } from '@/stores/Address';
import { defineComponent } from '@vue/composition-api';
import IdenticonStack from './IdenticonStack.vue';
import InteractiveShortAddress from './InteractiveShortAddress.vue';
export default defineComponent({
props: {
showBitcoin: {
type: Boolean,
default: false,
},
},
setup() {
const { activeAddressInfo } = useAddressStore();
return {
activeAddressInfo,
};
},
components: {
IdenticonStack,
InteractiveShortAddress,
},
});
</script>
<style scoped lang="scss">
.flex-column {
align-items: center;
.identicon-stack {
padding-bottom: 4rem;
}
.interactive-short-address {
margin-top: -3.5rem;
}
}
</style>