Skip to content

Commit 89a3fad

Browse files
feat: Updated order of tabs on import details (#353)
2 parents 0900d2c + ed52f75 commit 89a3fad

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

apps/web/assets/icons/Five.icon.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { IconType } from '@types';
2+
import { IconSizes } from 'config';
3+
4+
export const FiveIcon = ({ size = 'sm' }: IconType) => {
5+
return (
6+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width={IconSizes[size]} height={IconSizes[size]}>
7+
<path d="M18.0005 2V4H9.30073L8.62386 10.4448C9.60799 9.84532 10.7639 9.5 12.0005 9.5C15.5904 9.5 18.5005 12.4101 18.5005 16C18.5005 19.5899 15.5904 22.5 12.0005 22.5C8.95483 22.5 6.39837 20.4052 5.69336 17.5778L7.634 17.0922C8.12205 19.0497 9.89193 20.5 12.0005 20.5C14.4858 20.5 16.5005 18.4853 16.5005 16C16.5005 13.5147 14.4858 11.5 12.0005 11.5C9.97832 11.5 8.72286 12.139 8.04033 13.0293L6.46536 11.848L7.50054 2H18.0005Z" />
8+
</svg>
9+
);
10+
};

apps/web/pages/imports/[id].tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { AppLayout } from '@layouts/AppLayout';
2020
import { OneIcon } from '@assets/icons/One.icon';
2121
import { TwoIcon } from '@assets/icons/Two.icon';
2222
import { EditIcon } from '@assets/icons/Edit.icon';
23+
import { FiveIcon } from '@assets/icons/Five.icon';
2324
import { FourIcon } from '@assets/icons/Four.icon';
2425
import { ThreeIcon } from '@assets/icons/Three.icon';
2526
import { DeleteIcon } from '@assets/icons/Delete.icon';
@@ -87,33 +88,39 @@ export default function ImportDetails({ template }: ImportDetailProps) {
8788
icon: <OneIcon size="xs" />,
8889
content: <Schema templateId={template._id} />,
8990
},
91+
{
92+
value: 'destination',
93+
title: 'Destination',
94+
icon: <TwoIcon size="xs" />,
95+
content: <Destination template={template} accessToken={profile?.accessToken} />,
96+
},
9097
{
9198
value: 'snippet',
9299
title: 'Snippet',
93-
icon: <TwoIcon size="xs" />,
100+
icon: <ThreeIcon size="xs" />,
94101
content: (
95102
<Snippet templateId={template._id} projectId={template._projectId} accessToken={profile?.accessToken} />
96103
),
97104
},
98-
{
99-
value: 'destination',
100-
title: 'Destination',
101-
icon: <ThreeIcon size="xs" />,
102-
content: <Destination template={template} accessToken={profile?.accessToken} />,
103-
},
104105
...(publicRuntimeConfig.NEXT_PUBLIC_CUSTOM_VALIDATION_ENABLED === 'true'
105106
? [
106107
{
107108
value: 'validator',
108109
title: 'Validator',
110+
icon: <FourIcon size="xs" />,
109111
content: <Validator templateId={template._id} />,
110112
},
111113
]
112114
: []),
113115
{
114116
value: 'output',
115117
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+
),
117124
content: <Editor templateId={template._id} />,
118125
},
119126
]}

0 commit comments

Comments
 (0)