19
19
* or displaying the modals.
20
20
*/
21
21
22
- import { PropType , defineAsyncComponent , defineComponent } from ' vue' ;
22
+ import {
23
+ PropType ,
24
+ defineAsyncComponent ,
25
+ defineComponent ,
26
+ } from ' vue' ;
23
27
import { useStore } from ' vuex' ;
24
28
import type { Protocol , ProtocolView , ProtocolViewsConfig } from ' @/types' ;
25
29
import { DISTINCT_PROTOCOL_VIEWS , PROTOCOL_AETERNITY } from ' @/constants' ;
@@ -30,7 +34,9 @@ import aeternityViews from '@/protocols/aeternity/views';
30
34
import bitcoinViews from ' @/protocols/bitcoin/views' ;
31
35
32
36
import { useRoute } from ' vue-router' ;
33
- import { detectProtocolByOwner } from ' @/utils' ;
37
+ import {
38
+ detectProtocolByOwner ,
39
+ } from ' @/utils' ;
34
40
import InfoBox from ' ./InfoBox.vue' ;
35
41
36
42
/**
@@ -54,13 +60,16 @@ export default defineComponent({
54
60
},
55
61
setup(props ) {
56
62
const store = useStore ();
57
- const { activeAccount } = useAccounts ({ store });
58
- const { activeNetwork } = useNetworks ();
59
63
const { params, meta } = useRoute ();
64
+
65
+ const { activeNetwork } = useNetworks ();
66
+ const { activeAccount } = useAccounts ({ store });
67
+
60
68
const ownerProtocol = detectProtocolByOwner (
61
69
activeNetwork .value .type ,
62
70
params .transactionOwner as string ,
63
71
);
72
+
64
73
const importViewComponent = views [
65
74
meta .isMultisig
66
75
? PROTOCOL_AETERNITY
0 commit comments