Skip to content

Commit 07aa93d

Browse files
aashimgargbhavabhuthi
authored andcommitted
replace table with DataTable
1 parent 337ec23 commit 07aa93d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/components

app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/components/ResourceSchema.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { useParams } from 'next/navigation';
33
import { graphql } from '@/gql';
44
import { useMutation, useQuery } from '@tanstack/react-query';
5-
import { Button, Table, Icon, IconButton, Spinner, Text } from 'opub-ui';
5+
import { Button, DataTable, Icon, IconButton, Spinner, Text } from 'opub-ui';
66

77
import { GraphQL } from '@/lib/api';
88
import { Icons } from '@/components/icons';
@@ -101,10 +101,11 @@ export const ResourceSchema = ({
101101
<Spinner size={30} />
102102
</div>
103103
) : data && data.length > 0 ? (
104-
<Table
104+
<DataTable
105105
columns={generateColumnData()}
106106
rows={generateTableData(data)}
107107
hideFooter={true}
108+
hideSelection
108109
/>
109110
) : (
110111
<div className="flex justify-center mt-8">Click on Reset Fields</div>

0 commit comments

Comments
 (0)