classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Replace DataTable with useTable inside adminTable.js

Open Komal914 opened this issue 1 year ago • 3 comments

Describe the bug The DataTable library is being used inside the adminTable component. This library has caused issues in the past. It needs to be removed and replaced with useTable from react.

To Reproduce Steps to reproduce the behavior:

  1. Go to '../components/adminTable.js'
  2. Remove line 2, and replace it with import { useTable } from 'react-table'
  3. Scroll down to line 5. Update the rest of the code to work with useTable, and render.

Additional context The library useTable has been used in the past inside '../components/dashtable_v2.js'. Refer to this file for example.

Komal914 avatar Aug 24 '23 23:08 Komal914

I will be working on this.

Komal914 avatar Aug 24 '23 23:08 Komal914

Is this issue still open??

Ranjan-bej avatar Sep 07 '23 11:09 Ranjan-bej

hey @Ranjan-bej, the issue is open but I am working on it. There should be a PR up soon.

Komal914 avatar Sep 07 '23 20:09 Komal914