Skip to content

Commit 5e0a6cd

Browse files
committed
fix ui
1 parent e7d081d commit 5e0a6cd

File tree

1 file changed

+15
-11
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/resources/components

1 file changed

+15
-11
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/resources/components/ResourceDropzone.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useParams } from 'next/navigation';
33
import { CreateFileResourceInput } from '@/gql/generated/graphql';
44
import { useMutation } from '@tanstack/react-query';
55
import { parseAsString, useQueryState } from 'next-usequerystate';
6-
import { Button, DropZone, Text, toast } from 'opub-ui';
6+
import { Button, DropZone, Tag, Text, toast } from 'opub-ui';
77

88
import { GraphQL } from '@/lib/api';
99
import { createResourceFilesDoc } from './query';
@@ -59,16 +59,20 @@ export const ResourceDropzone = ({ reload }: { reload: () => void }) => {
5959
Choose Files to Upload
6060
</Button>
6161
<Text>Maximum File Size Limit : 25 MB</Text>
62-
<Text className="flex items-center gap-1">
63-
Supported File Types :{' '}
64-
{fileTypes.map((type, index) => {
65-
return (
66-
<div className="rounded-1 bg-basePureWhite px-2 py-1" key={index}>
67-
{type}
68-
</div>
69-
);
70-
})}
71-
</Text>
62+
<div className="flex flex-wrap flex-row items-center gap-2">
63+
<Text variant="bodyMd" color="subdued">
64+
Supported File Types:
65+
</Text>
66+
<div className="flex flex-wrap flex-row gap-2">
67+
{fileTypes.map((type, index) => {
68+
return (
69+
<Tag fillColor="white" textColor="baseDefault" key={index}>
70+
{type}
71+
</Tag>
72+
);
73+
})}
74+
</div>
75+
</div>
7276
</>
7377
);
7478

0 commit comments

Comments
 (0)