CougarCS / CougarCS-AdminPortal

Our officer admin portal created with React & Typescript
MIT License
6 stars 12 forks source link

Implemented Search Sort Paginate #65

Closed 04AJ closed 1 year ago

04AJ commented 1 year ago

What type of PR is this? (check applicable) 🚧

Describe your PR request 🔥 Implemented logic to search, sort, and paginate table data. Removed presentable data state obj in member.tsx.

Mobile & Desktop Screenshots/Recordings 📷

ssp1 ssp2

Related Issues 🩹 Closes #55

Added to documentation? 📝

Additional context 🗒️ None

seesjays commented 1 year ago

That block ^ removes X number of elements from the newArr, makes them into an array, and adds them to the output till there's nothing left. I tested it out a while back but ran into some bugs because I was operating on data directly, but since you make newArr you should be good to use it.

seesjays commented 1 year ago

Really good stuff otherwise, this is pretty much the last thing we needed for the contacts page 🎉

04AJ commented 1 year ago

Sorry about that, I just pushed the corrected paginate code to the file

seesjays commented 1 year ago

Fantastic stuff Alan! 🎉 this helps a ton, tysm