@@ -20,6 +20,7 @@ import { AppLayout } from '@layouts/AppLayout';
20
20
import { OneIcon } from '@assets/icons/One.icon' ;
21
21
import { TwoIcon } from '@assets/icons/Two.icon' ;
22
22
import { EditIcon } from '@assets/icons/Edit.icon' ;
23
+ import { FiveIcon } from '@assets/icons/Five.icon' ;
23
24
import { FourIcon } from '@assets/icons/Four.icon' ;
24
25
import { ThreeIcon } from '@assets/icons/Three.icon' ;
25
26
import { DeleteIcon } from '@assets/icons/Delete.icon' ;
@@ -87,33 +88,39 @@ export default function ImportDetails({ template }: ImportDetailProps) {
87
88
icon : < OneIcon size = "xs" /> ,
88
89
content : < Schema templateId = { template . _id } /> ,
89
90
} ,
91
+ {
92
+ value : 'destination' ,
93
+ title : 'Destination' ,
94
+ icon : < TwoIcon size = "xs" /> ,
95
+ content : < Destination template = { template } accessToken = { profile ?. accessToken } /> ,
96
+ } ,
90
97
{
91
98
value : 'snippet' ,
92
99
title : 'Snippet' ,
93
- icon : < TwoIcon size = "xs" /> ,
100
+ icon : < ThreeIcon size = "xs" /> ,
94
101
content : (
95
102
< Snippet templateId = { template . _id } projectId = { template . _projectId } accessToken = { profile ?. accessToken } />
96
103
) ,
97
104
} ,
98
- {
99
- value : 'destination' ,
100
- title : 'Destination' ,
101
- icon : < ThreeIcon size = "xs" /> ,
102
- content : < Destination template = { template } accessToken = { profile ?. accessToken } /> ,
103
- } ,
104
105
...( publicRuntimeConfig . NEXT_PUBLIC_CUSTOM_VALIDATION_ENABLED === 'true'
105
106
? [
106
107
{
107
108
value : 'validator' ,
108
109
title : 'Validator' ,
110
+ icon : < FourIcon size = "xs" /> ,
109
111
content : < Validator templateId = { template . _id } /> ,
110
112
} ,
111
113
]
112
114
: [ ] ) ,
113
115
{
114
116
value : 'output' ,
115
117
title : 'Output' ,
116
- icon : < FourIcon size = "xs" /> ,
118
+ icon :
119
+ publicRuntimeConfig . NEXT_PUBLIC_CUSTOM_VALIDATION_ENABLED === 'true' ? (
120
+ < FiveIcon size = "xs" />
121
+ ) : (
122
+ < FourIcon size = "xs" />
123
+ ) ,
117
124
content : < Editor templateId = { template . _id } /> ,
118
125
} ,
119
126
] }
0 commit comments